MCPcopy
hub / github.com/ajv-validator/ajv / exitOnErrorMode

Function exitOnErrorMode

lib/vocabularies/validation/required.ts:60–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58 }
59
60 function exitOnErrorMode(): void {
61 const missing = gen.let("missing")
62 if (useLoop || $data) {
63 const valid = gen.let("valid", true)
64 cxt.block$data(valid, () => loopUntilMissing(missing, valid))
65 cxt.ok(valid)
66 } else {
67 gen.if(checkMissingProp(cxt, schema, missing))
68 reportMissingProp(cxt, missing)
69 gen.else()
70 }
71 }
72
73 function loopAllRequired(): void {
74 gen.forOf("prop", schemaCode as Code, (prop) => {

Callers 1

codeFunction · 0.85

Calls 8

checkMissingPropFunction · 0.90
reportMissingPropFunction · 0.90
loopUntilMissingFunction · 0.85
letMethod · 0.80
block$dataMethod · 0.80
okMethod · 0.80
ifMethod · 0.80
elseMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…