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

Function loopAllRequired

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

Source from the content-addressed store, hash-verified

6902 }
6903 }
6904 function loopAllRequired() {
6905 gen.forOf("prop", schemaCode, (prop) => {
6906 cxt.setParams({ missingProperty: prop });
6907 gen.if((0, code_1.noPropertyInData)(gen, data, prop, opts.ownProperties), () => cxt.error());
6908 });
6909 }
6910 function loopUntilMissing(missing, valid) {
6911 cxt.setParams({ missingProperty: missing });
6912 gen.forOf(missing, schemaCode, () => {

Callers

nothing calls this directly

Calls 4

forOfMethod · 0.80
setParamsMethod · 0.80
errorMethod · 0.80
ifMethod · 0.45

Tested by

no test coverage detected