constructor() — fastify Function Reference
Architecture documentation for the constructor() function in schema-controller.js from the fastify codebase.
Entity Profile
Dependency Diagram
graph TD a7046e65_7261_6c90_8b9c_c3e8c78b392c["constructor()"] f9c71bed_770a_87b0_8d4c_3279f23ba910["SchemaController"] a7046e65_7261_6c90_8b9c_c3e8c78b392c -->|defined in| f9c71bed_770a_87b0_8d4c_3279f23ba910 642d13d0_7bf1_b585_07fd_8a26f40d47af["getSchemas()"] a7046e65_7261_6c90_8b9c_c3e8c78b392c -->|calls| 642d13d0_7bf1_b585_07fd_8a26f40d47af 25b7e42f_ca16_2322_a136_265dced12160["getValidatorCompiler()"] a7046e65_7261_6c90_8b9c_c3e8c78b392c -->|calls| 25b7e42f_ca16_2322_a136_265dced12160 1c0c7d20_50bc_9fd7_04c9_9664f0882946["getSerializerCompiler()"] a7046e65_7261_6c90_8b9c_c3e8c78b392c -->|calls| 1c0c7d20_50bc_9fd7_04c9_9664f0882946 style a7046e65_7261_6c90_8b9c_c3e8c78b392c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
lib/schema-controller.js lines 41–59
constructor (parent, options) {
this.opts = options || parent?.opts
this.addedSchemas = false
this.compilersFactory = this.opts.compilersFactory
if (parent) {
this.schemaBucket = this.opts.bucket(parent.getSchemas())
this.validatorCompiler = parent.getValidatorCompiler()
this.serializerCompiler = parent.getSerializerCompiler()
this.isCustomValidatorCompiler = parent.isCustomValidatorCompiler
this.isCustomSerializerCompiler = parent.isCustomSerializerCompiler
this.parent = parent
} else {
this.schemaBucket = this.opts.bucket()
this.isCustomValidatorCompiler = this.opts.isCustomValidatorCompiler || false
this.isCustomSerializerCompiler = this.opts.isCustomSerializerCompiler || false
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does constructor() do?
constructor() is a function in the fastify codebase, defined in lib/schema-controller.js.
Where is constructor() defined?
constructor() is defined in lib/schema-controller.js at line 41.
What does constructor() call?
constructor() calls 3 function(s): getSchemas, getSerializerCompiler, getValidatorCompiler.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free