MCPcopy Create free account
hub / github.com/fastify/fastify / FastifySchemaControllerOptions

Interface FastifySchemaControllerOptions

types/schema.d.ts:47–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45export type FastifySerializerCompiler<T> = (routeSchema: FastifyRouteSchemaDef<T>) => (data: any) => string
46
47export interface FastifySchemaControllerOptions {
48 bucket?: (parentSchemas?: unknown) => {
49 add(schema: unknown): FastifyInstance;
50 getSchema(schemaId: string): unknown;
51 getSchemas(): Record<string, unknown>;
52 };
53 compilersFactory?: {
54 buildValidator?: ValidatorFactory;
55 buildSerializer?: SerializerFactory;
56 };
57}
58
59export type SchemaErrorDataVar = 'body' | 'headers' | 'params' | 'querystring'
60

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected