github Stranger6667/jsonschema rust-v0.35.0
[Rust] Release 0.35.0

latest releases: ruby-v0.46.5, python-v0.46.5, rust-v0.46.5...
6 months ago

Added

  • Support for custom meta-schemas. Schemas with custom $schema URIs can now be used by registering their meta-schemas in the Registry via jsonschema::options().with_registry(). #664
  • arbitrary-precision feature for exact numeric validation of large integers and decimals beyond standard floating-point limits. #103
  • Support for HTTPS $schema URIs for drafts 04, 06, and 07 (e.g., https://json-schema.org/draft-07/schema). #802

Changed

  • BREAKING: meta::is_valid now panics for unknown $schema values instead of defaulting to Draft 2020-12. meta::validate returns an error for unknown $schema values. Use meta::options().with_registry() to validate schemas against custom meta-schemas.
  • BREAKING: Resource::from_contents no longer returns Result and always succeeds, since draft detection no longer fails for unknown $schema values.

Removed

  • BREAKING: meta::try_is_valid and meta::try_validate. Use meta::is_valid and meta::validate instead.
  • BREAKING: primitive_type module (deprecated since 0.30.0). Use jsonschema::types instead.

Performance

  • required: short-circuit when the instance object has fewer properties than required keys.

Don't miss a new jsonschema release

NewReleases is sending notifications on new releases.