MCPcopy
hub / github.com/fastify/fastify / add

Function add

test/types/instance.tst.ts:176–180  ·  view source on GitHub ↗
(schema)

Source from the content-addressed store, hash-verified

174
175 return {
176 add (schema) {
177 expect(schema).type.toBe<unknown>()
178 expect(server.addSchema({ type: 'null' })).type.toBe<FastifyInstance>()
179 return server.addSchema({ type: 'null' })
180 },
181 getSchema (schemaId) {
182 expect(schemaId).type.toBe<string>()
183 return server.getSchema('SchemaId')

Callers

nothing calls this directly

Calls 1

addSchemaMethod · 0.80

Tested by

no test coverage detected