Skip to content

[Rust] Release 0.46.0

Latest

Choose a tag to compare

@github-actions github-actions released this 10 Apr 21:52
· 3 commits to master since this release
rust-v0.46.0
871bfd3

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.