github Stranger6667/jsonschema rust-v0.46.0
[Rust] Release 0.46.0

latest releases: ruby-v0.46.5, python-v0.46.5, rust-v0.46.5...
one month ago

Added

  • ValidatorMap for validating instances against subschemas identified by URI-fragment JSON pointer. #1075
  • CLI: Accept multiple values after -i/--instance (e.g. jsonschema validate schema.json -i *.json). #1085
  • dereference function to recursively inline $ref references. #422
  • CLI: jsonschema dereference subcommand to dereference a schema from the command line.

Breaking Changes

  • Registry construction now uses an explicit prepare step, and with_registry now borrows the prepared registry. ValidationOptions::with_resource and ValidationOptions::with_resources were removed in favor of building a Registry first. See the Migration Guide for the details.

Performance

  • Avoid registry clones and document clones during validator construction. This improves real-world schema compilation by roughly 10-20% in internal benchmarks.

Don't miss a new jsonschema release

NewReleases is sending notifications on new releases.