(key, valid, errors)
| 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; |
no test coverage detected