fastify-openapi-connector
Version:
Fastify plugin that will set-up routes with security & json validation based on OpenAPI specification
14 lines (13 loc) • 573 B
TypeScript
import type { FastifyInstance } from 'fastify';
import type { Components } from './types.js';
/**
* Helper function to remove x-extensions from the schema
* @param obj Schema object
* @returns object without x-extensions
*/
export declare const removeXtensions: (obj: unknown) => void; /**
* Function registering components (schema) to the fastify instance
* @param fastify Fastify instance
* @param components Components object from the OpenAPI specification
*/
export declare const registerComponents: (fastify: FastifyInstance, components?: Components) => void;