Changes for version v0.4.0 - 2025-11-16
- Added optional pruning support to JSON::Schema::Validate, as it is often required by REST APIs:
- New constructor option 'prune_unknown' to remove unknown object properties from instances before validation, based on the schema’s properties, patternProperties, additionalProperties and allOf keywords.
- New method 'prune_instance' returning a pruned copy of the given instance without modifying the original data structure.
Documentation
JSON Schema Exception
Modules
Lean, recursion-safe JSON Schema validator (Draft 2020-12)
Provides
in lib/JSON/Schema/Validate.pm