Changes for version v0.5.1 - 2025-11-20
- Fixed _k_combinator to avoid leaking errors from anyOf/oneOf branches into the main validation context; only the selected branch now contributes errors and annotations.
- Fixed _k_if_then_else so that the "if" subschema is always evaluated in a shadow context. Keywords such as "required" inside "if" no longer produce spurious failures when the condition is not satisfied; only "then"/"else" affect the outcome.
- Improved error reporting to include both the schema pointer and the instance path, along with required vs present properties, which makes debugging nested combinators (anyOf/oneOf/if/then/not) much easier.
- Added regression tests covering if/then with conditional "required", and a oneOf-based "shares" schema combining simple totals and share classes, including edge cases around "golden" and "no voting right" shares.
Documentation
JSON Schema Exception
Modules
Lean, recursion-safe JSON Schema validator (Draft 2020-12)
Provides
in lib/JSON/Schema/Validate.pm