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

Function exitOnErrorMode

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

Source from the content-addressed store, hash-verified

6889 }
6890 }
6891 function exitOnErrorMode() {
6892 const missing = gen.let("missing");
6893 if (useLoop || $data) {
6894 const valid = gen.let("valid", true);
6895 cxt.block$data(valid, () => loopUntilMissing(missing, valid));
6896 cxt.ok(valid);
6897 }
6898 else {
6899 gen.if((0, code_1.checkMissingProp)(cxt, schema, missing));
6900 (0, code_1.reportMissingProp)(cxt, missing);
6901 gen.else();
6902 }
6903 }
6904 function loopAllRequired() {
6905 gen.forOf("prop", schemaCode, (prop) => {
6906 cxt.setParams({ missingProperty: prop });

Callers 1

codeFunction · 0.85

Calls 6

loopUntilMissingFunction · 0.85
letMethod · 0.80
block$dataMethod · 0.80
okMethod · 0.80
elseMethod · 0.80
ifMethod · 0.45

Tested by

no test coverage detected