[Rust] Release 0.20.0
·
423 commits
to master
since this release
Important: This release includes several deprecations and renames. While backward compatibility is maintained for now, users are encouraged to update their code. See the Migration Guide for details on transitioning to the new API.
Added
- New draft-specific modules for easier version-targeted validation:
jsonschema::draft4jsonschema::draft6jsonschema::draft7jsonschema::draft201909jsonschema::draft202012
Each module providesnew(),is_valid(), andoptions()functions.
jsonschema::options()function as a shortcut forjsonschema::Validator::options(), that allows for customization of the validation process.
Changed
- Make
Debugimplementation forSchemaNodeopaque. - Make
jsonschema::validator_forand related functions returnValidationError<'static>in theirErrvariant.
This change makes possible to use the?operator to return errors from functions where the input schema is defined.
Deprecated
- Rename
CompilationOptionstoValidationOptionsfor clarity. - Rename
JSONSchematoValidatorfor clarity. #424 - Rename
JSONPointertoJsonPointerfor consistency with naming conventions. #424 - Rename
jsonschema::compiletojsonschema::validator_for. - Rename
CompilationOptions::compiletoValidationOptions::build.
Old names are retained for backward compatibility but will be removed in a future release.
Fixed
- Location-independent references in remote schemas on drafts 4, 6, and 7.