defaultSchemaErrorFormatter() — fastify Function Reference
Architecture documentation for the defaultSchemaErrorFormatter() function in context.js from the fastify codebase.
Entity Profile
Dependency Diagram
graph TD e5b1c677_f0d5_6891_151c_32b1ba921029["defaultSchemaErrorFormatter()"] 39cb219c_7ca6_c183_e0a5_d246f37be386["context.js"] e5b1c677_f0d5_6891_151c_32b1ba921029 -->|defined in| 39cb219c_7ca6_c183_e0a5_d246f37be386 style e5b1c677_f0d5_6891_151c_32b1ba921029 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
lib/context.js lines 84–93
function defaultSchemaErrorFormatter (errors, dataVar) {
let text = ''
const separator = ', '
for (let i = 0; i !== errors.length; ++i) {
const e = errors[i]
text += dataVar + (e.instancePath || '') + ' ' + e.message + separator
}
return new Error(text.slice(0, -separator.length))
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does defaultSchemaErrorFormatter() do?
defaultSchemaErrorFormatter() is a function in the fastify codebase, defined in lib/context.js.
Where is defaultSchemaErrorFormatter() defined?
defaultSchemaErrorFormatter() is defined in lib/context.js at line 84.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free