MCPcopy Index your code
hub / github.com/json-editor/json-editor / validateAsync

Function validateAsync

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

Source from the content-addressed store, hash-verified

3337 }
3338 }
3339 function validateAsync() {
3340 const ruleErrs = gen.let("ruleErrs", null);
3341 gen.try(() => assignValid((0, codegen_1._) `await `), (e) => gen.assign(valid, false).if((0, codegen_1._) `${e} instanceof ${it.ValidationError}`, () => gen.assign(ruleErrs, (0, codegen_1._) `${e}.errors`), () => gen.throw(e)));
3342 return ruleErrs;
3343 }
3344 function validateSync() {
3345 const validateErrs = (0, codegen_1._) `${validateRef}.errors`;
3346 gen.assign(validateErrs, null);

Callers 1

validateKeywordFunction · 0.85

Calls 6

assignValidFunction · 0.85
letMethod · 0.80
tryMethod · 0.80
assignMethod · 0.80
throwMethod · 0.80
ifMethod · 0.45

Tested by

no test coverage detected