karenetheridge / JSON-Schema-Modern

Validate data against a schema using a JSON Schema
https://metacpan.org/release/JSON-Schema-Modern/
Other
10 stars 1 forks source link

config option: strict checking #11

Closed karenetheridge closed 2 years ago

karenetheridge commented 4 years ago
karenetheridge commented 3 years ago

Reporting of unrecognized keywords can be done once we have a pre-validation traversal step (see #33), which guarantees that all subschemas are visited (just once, when the schema is introduced to the implementation) even if the data instance doesn't necessitate it.

Otherwise, the user can always evaluate the schema against a stricter metaschema which has unevaluatedProperties: false added to the base schema.

karenetheridge commented 3 years ago

when we start (optionally) checking for unrecognized keywords, the current hooks for 'definitions' and 'dependencies' should be removed, as they can be encompassed by the generic checks. When strict mode is not enabled, their use will be ignored as is the case for all other unrecognized keywords.

karenetheridge commented 2 years ago

strict mode now exists as an option (as of 0.542 2022-01-23 08:17:08Z).