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

Method reset

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

Source from the content-addressed store, hash-verified

3134 (0, errors_1.reportError)(this, this.def.$dataError || errors_1.keyword$DataError);
3135 }
3136 reset() {
3137 if (this.errsCount === undefined)
3138 throw new Error('add "trackErrors" to keyword definition');
3139 (0, errors_1.resetErrorsCount)(this.gen, this.errsCount);
3140 }
3141 ok(cond) {
3142 if (!this.allErrors)
3143 this.gen.if(cond);

Callers 3

additionalPropertyCodeFunction · 0.80
codeFunction · 0.80
validateUnionFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected