MCPcopy Create free account
hub / github.com/json-editor/json-editor / callValidate

Function callValidate

docs/scripts/ajv-validator.js:5659–5662  ·  view source on GitHub ↗
(sch)

Source from the content-addressed store, hash-verified

5657 return callRef(cxt, (0, codegen_1._) `${rootName}.validate`, root, root.$async);
5658 }
5659 function callValidate(sch) {
5660 const v = getValidate(cxt, sch);
5661 callRef(cxt, v, sch, sch.$async);
5662 }
5663 function inlineRefSchema(sch) {
5664 const schName = gen.scopeValue("schema", opts.code.source === true ? { ref: sch, code: (0, codegen_1.stringify)(sch) } : { ref: sch });
5665 const valid = gen.name("valid");

Callers 1

codeFunction · 0.85

Calls 2

getValidateFunction · 0.85
callRefFunction · 0.85

Tested by

no test coverage detected