MCPcopy
hub / github.com/fastify/fastify / addSchema

Method addSchema

types/instance.d.ts:136–136  ·  view source on GitHub ↗
(schema: unknown)

Source from the content-addressed store, hash-verified

134 withTypeProvider<Provider extends FastifyTypeProvider>(): FastifyInstance<RawServer, RawRequest, RawReply, Logger, Provider>;
135
136 addSchema(schema: unknown): FastifyInstance<RawServer, RawRequest, RawReply, Logger, TypeProvider>;
137 getSchema(schemaId: string): unknown;
138 getSchemas(): Record<string, unknown>;
139

Callers 13

addSchemaFunction · 0.80
decoratorFunction · 0.80
rootBuildValidatorFunction · 0.80
addSchemaFunction · 0.80
instance.tst.tsFile · 0.80
addFunction · 0.80

Calls

no outgoing calls

Tested by 3

decoratorFunction · 0.64
rootBuildValidatorFunction · 0.64
addSchemaFunction · 0.64