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

Function callRootRef

docs/scripts/ajv-validator.js:5653–5658  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5651 return callValidate(schOrEnv);
5652 return inlineRefSchema(schOrEnv);
5653 function callRootRef() {
5654 if (env === root)
5655 return callRef(cxt, validateName, env, env.$async);
5656 const rootName = gen.scopeValue("root", { ref: root });
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);

Callers 1

codeFunction · 0.85

Calls 2

callRefFunction · 0.85
scopeValueMethod · 0.80

Tested by

no test coverage detected