validateSchemaBodyOption() — fastify Function Reference
Architecture documentation for the validateSchemaBodyOption() function in route.js from the fastify codebase.
Entity Profile
Dependency Diagram
graph TD 60866813_7944_c36e_d7da_8f5a55d49da7["validateSchemaBodyOption()"] de54192b_022b_f89b_5a43_a2593cb4df49["route.js"] 60866813_7944_c36e_d7da_8f5a55d49da7 -->|defined in| de54192b_022b_f89b_5a43_a2593cb4df49 style 60866813_7944_c36e_d7da_8f5a55d49da7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
lib/route.js lines 586–590
function validateSchemaBodyOption (method, path, schema) {
if (this[kSupportedHTTPMethods].bodyless.has(method) && schema?.body) {
throw new FST_ERR_ROUTE_BODY_VALIDATION_SCHEMA_NOT_SUPPORTED(method, path)
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does validateSchemaBodyOption() do?
validateSchemaBodyOption() is a function in the fastify codebase, defined in lib/route.js.
Where is validateSchemaBodyOption() defined?
validateSchemaBodyOption() is defined in lib/route.js at line 586.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free