github Stranger6667/jsonschema rust-v0.48.0
[Rust] Release 0.48.0

latest releases: ruby-v0.48.0, python-v0.48.0
5 hours ago

Added

  • iter_errors for #[jsonschema::validator]-generated validators.

Fixed

  • Per-branch context on generated anyOf and oneOf validation errors, matching runtime validators.
  • $recursiveRef in generated validators incorrectly resolved to the innermost $recursiveAnchor (it should resolve to the outermost one).
  • Integer instances just outside the i64/u64 range incorrectly compared against numeric bounds through lossy f64 rounding under arbitrary-precision (e.g. {"minimum": -9223372036854775808} accepted -9223372036854775809).

Changed

  • One canonical number spelling from canonical::json::to_string under arbitrary-precision ("1e-2" becomes "0.01", "1.50" becomes "1.5") and correctly-rounded float parsing (serde_json's float_roundtrip).

Performance

  • Faster multipleOf validation for integer instances with integer divisors, via integer arithmetic instead of floating-point modulo.

Don't miss a new jsonschema release

NewReleases is sending notifications on new releases.