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

Function schemaCxtHasRules

docs/scripts/ajv-validator.js:2857–2864  ·  view source on GitHub ↗
({ schema, self })

Source from the content-addressed store, hash-verified

2855 (0, boolSchema_1.boolOrEmptySchema)(it, valid);
2856 }
2857 function schemaCxtHasRules({ schema, self }) {
2858 if (typeof schema == "boolean")
2859 return !schema;
2860 for (const key in schema)
2861 if (self.RULES.all[key])
2862 return true;
2863 return false;
2864 }
2865 function isSchemaObj(it) {
2866 return typeof it.schema != "boolean";
2867 }

Callers 2

validateFunctionCodeFunction · 0.85
subschemaCodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected