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

Function applyAdditionalSchema

docs/scripts/ajv-validator.js:4537–4551  ·  view source on GitHub ↗
(key, valid, errors)

Source from the content-addressed store, hash-verified

4535 }
4536 }
4537 function applyAdditionalSchema(key, valid, errors) {
4538 const subschema = {
4539 keyword: "additionalProperties",
4540 dataProp: key,
4541 dataPropType: util_1.Type.Str,
4542 };
4543 if (errors === false) {
4544 Object.assign(subschema, {
4545 compositeRule: true,
4546 createErrors: false,
4547 allErrors: false,
4548 });
4549 }
4550 cxt.subschema(subschema, valid);
4551 }
4552 },
4553 };
4554 exports.default = def;

Callers 1

additionalPropertyCodeFunction · 0.85

Calls 2

assignMethod · 0.80
subschemaMethod · 0.80

Tested by

no test coverage detected