Changes for version v0.9.0 - 2026-03-01
- Format Validation
- Fixed the 'iri' format validator, which was far too permissive: its third regex alternative (\A[^\s]+\z) accepted any non-whitespace string as a valid IRI, including plain words with no scheme. The validator now requires a proper RFC 3987 scheme (ASCII letter followed by letters, digits, '+', '-', or '.'), consistent with the existing 'uri' validator. The /u flag is retained to allow Unicode characters in the path and query components.
- Performance
- _canon() and _clone() now use a state variable for the JSON object instead of re-instantiating it on every call.
Documentation
JSON Schema Exception
Modules
Lean, recursion-safe JSON Schema validator (Draft 2020-12)
Provides
in lib/JSON/Schema/Validate.pm