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

Function checkAsyncKeyword

docs/scripts/ajv-validator.js:3374–3377  ·  view source on GitHub ↗
({ schemaEnv }, def)

Source from the content-addressed store, hash-verified

3372 }, () => cxt.error());
3373 }
3374 function checkAsyncKeyword({ schemaEnv }, def) {
3375 if (def.async && !schemaEnv.$async)
3376 throw new Error("async keyword in sync schema");
3377 }
3378 function useKeyword(gen, keyword, result) {
3379 if (result === undefined)
3380 throw new Error(`keyword "${keyword}" failed to compile`);

Callers 1

funcKeywordCodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected