MCPcopy Index your code
hub / github.com/fastify/fast-json-stringify / restoreFromState

Method restoreFromState

lib/validator.js:87–93  ·  view source on GitHub ↗
(state)

Source from the content-addressed store, hash-verified

85 }
86
87 static restoreFromState (state) {
88 const validator = new Validator(state.ajvOptions)
89 for (const [id, ajvSchema] of Object.entries(state.ajvSchemas)) {
90 validator.ajv.addSchema(ajvSchema, id)
91 }
92 return validator
93 }
94}
95
96module.exports = Validator

Callers 1

debug-mode.test.jsFile · 0.45

Calls 1

addSchemaMethod · 0.80

Tested by

no test coverage detected