getResponseSchema() — fastify Function Reference
Architecture documentation for the getResponseSchema() function in reply-serialize.test.js from the fastify codebase.
Entity Profile
Dependency Diagram
graph TD 04b49b3a_cb95_9561_b66d_6877c34c1ede["getResponseSchema()"] 697d157d_7b7c_ecc7_c282_0fd2e6446333["reply-serialize.test.js"] 04b49b3a_cb95_9561_b66d_6877c34c1ede -->|defined in| 697d157d_7b7c_ecc7_c282_0fd2e6446333 style 04b49b3a_cb95_9561_b66d_6877c34c1ede fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
test/internals/reply-serialize.test.js lines 18–63
function getResponseSchema () {
return {
201: {
type: 'object',
required: ['status'],
properties: {
status: {
type: 'string',
enum: ['ok']
},
message: {
type: 'string'
}
}
},
'4xx': {
type: 'object',
properties: {
status: {
type: 'string',
enum: ['error']
},
code: {
type: 'integer',
minimum: 1
},
message: {
type: 'string'
}
}
},
'3xx': {
content: {
'application/json': {
schema: {
type: 'object',
properties: {
fullName: { type: 'string' },
phone: { type: 'number' }
}
}
}
}
}
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does getResponseSchema() do?
getResponseSchema() is a function in the fastify codebase, defined in test/internals/reply-serialize.test.js.
Where is getResponseSchema() defined?
getResponseSchema() is defined in test/internals/reply-serialize.test.js at line 18.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free