[Python] Release 0.42.2
·
91 commits
to master
since this release
Fixed
- SWAR digit parser accepted bytes
:–?(0x3A–0x3F) as valid digits duringdate,time, anddate-timeformat validation, potentially allowing malformed values to pass.
Changed
- Custom keyword validation exceptions are now chained to the resulting
ValidationErrorvia__cause__, preserving the original exception type and message.
Performance
- Extend
patternprefix optimization to handle escaped slashes (^\/) and exact-match patterns (^\$ref$). - Specialize
enumfor cases when all variants are strings.