schema.test-d.ts — fastify Source File
Architecture documentation for schema.test-d.ts, a typescript file in the fastify codebase. 5 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR d5497545_3944_734e_9ab1_5be73cea9f8c["schema.test-d.ts"] 2bf9986b_b7fb_0c78_f075_72fbe6f4672b["fastify.js"] d5497545_3944_734e_9ab1_5be73cea9f8c --> 2bf9986b_b7fb_0c78_f075_72fbe6f4672b f01e81af_0f1c_2d30_7446_655520499bc3["ajv-compiler"] d5497545_3944_734e_9ab1_5be73cea9f8c --> f01e81af_0f1c_2d30_7446_655520499bc3 7badc767_6ded_e9d1_fc52_2d169f82191e["fast-json-stringify-compiler"] d5497545_3944_734e_9ab1_5be73cea9f8c --> 7badc767_6ded_e9d1_fc52_2d169f82191e a40723e4_9f3f_2c2e_a977_2144c4e26ee8["ajv"] d5497545_3944_734e_9ab1_5be73cea9f8c --> a40723e4_9f3f_2c2e_a977_2144c4e26ee8 1741b237_9033_f1d9_f91f_94ad04e621d4["tsd"] d5497545_3944_734e_9ab1_5be73cea9f8c --> 1741b237_9033_f1d9_f91f_94ad04e621d4 style d5497545_3944_734e_9ab1_5be73cea9f8c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { StandaloneValidator } from '@fastify/ajv-compiler'
import { StandaloneSerializer } from '@fastify/fast-json-stringify-compiler'
import Ajv from 'ajv'
import { expectAssignable } from 'tsd'
import fastify, { FastifyInstance, FastifySchema } from '../../fastify'
const server = fastify()
expectAssignable<FastifyInstance>(server.get(
'/full-schema',
{
schema: {
body: { type: 'null' },
querystring: { type: 'null' },
params: { type: 'null' },
headers: { type: 'null' },
response: { type: 'null' }
}
},
() => { }
))
expectAssignable<FastifyInstance>(server.post(
'/multiple-content-schema',
{
schema: {
body: {
content: {
'application/json': {
schema: { type: 'object' }
},
'text/plain': {
schema: { type: 'string' }
}
}
}
}
},
() => { }
))
expectAssignable<FastifyInstance>(server.get(
'/empty-schema',
{
schema: {}
},
() => { }
))
expectAssignable<FastifyInstance>(server.get(
'/no-schema',
{},
() => { }
))
expectAssignable<FastifyInstance>(server.setValidatorCompiler(({ schema }) => {
return new Ajv().compile(schema)
}))
expectAssignable<FastifyInstance>(server.setSerializerCompiler(() => {
// ... (76 more lines)
Domain
Subdomains
Functions
Dependencies
- ajv
- ajv-compiler
- fast-json-stringify-compiler
- fastify.js
- tsd
Source
Frequently Asked Questions
What does schema.test-d.ts do?
schema.test-d.ts is a source file in the fastify codebase, written in typescript. It belongs to the CoreKernel domain, InstanceFactory subdomain.
What functions are defined in schema.test-d.ts?
schema.test-d.ts defines 1 function(s): factory.storeFunction.
What does schema.test-d.ts depend on?
schema.test-d.ts imports 5 module(s): ajv, ajv-compiler, fast-json-stringify-compiler, fastify.js, tsd.
Where is schema.test-d.ts in the architecture?
schema.test-d.ts is located at test/types/schema.test-d.ts (domain: CoreKernel, subdomain: InstanceFactory, directory: test/types).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free