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

Function loopUntilMissing

docs/scripts/ajv-validator.js:6910–6919  ·  view source on GitHub ↗
(missing, valid)

Source from the content-addressed store, hash-verified

6908 });
6909 }
6910 function loopUntilMissing(missing, valid) {
6911 cxt.setParams({ missingProperty: missing });
6912 gen.forOf(missing, schemaCode, () => {
6913 gen.assign(valid, (0, code_1.propertyInData)(gen, data, missing, opts.ownProperties));
6914 gen.if((0, codegen_1.not)(valid), () => {
6915 cxt.error();
6916 gen.break();
6917 });
6918 }, codegen_1.nil);
6919 }
6920 },
6921 };
6922 exports.default = def;

Callers 1

exitOnErrorModeFunction · 0.85

Calls 6

setParamsMethod · 0.80
forOfMethod · 0.80
assignMethod · 0.80
errorMethod · 0.80
breakMethod · 0.80
ifMethod · 0.45

Tested by

no test coverage detected