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

Function checkRefsAndKeywords

docs/scripts/ajv-validator.js:2890–2895  ·  view source on GitHub ↗
(it)

Source from the content-addressed store, hash-verified

2888 schemaKeywords(it, types, !checkedTypes, errsCount);
2889 }
2890 function checkRefsAndKeywords(it) {
2891 const { schema, errSchemaPath, opts, self } = it;
2892 if (schema.$ref && opts.ignoreKeywordsWithRef && (0, util_1.schemaHasRulesButRef)(schema, self.RULES)) {
2893 self.logger.warn(`$ref: keywords ignored in schema at path "${errSchemaPath}"`);
2894 }
2895 }
2896 function checkNoDefault(it) {
2897 const { schema, opts } = it;
2898 if (schema.default !== undefined && opts.useDefaults && opts.strictSchema) {

Callers 1

checkKeywordsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected