Releases: Stranger6667/jsonschema
Releases · Stranger6667/jsonschema
[Rust] Release 0.46.0
Added
ValidatorMapfor 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 dereferencefunction to recursively inline$refreferences. #422- CLI:
jsonschema dereferencesubcommand to dereference a schema from the command line.
Breaking Changes
- Registry construction now uses an explicit prepare step, and
with_registrynow borrows the prepared registry.ValidationOptions::with_resourceandValidationOptions::with_resourceswere removed in favor of building aRegistryfirst. 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.
[Ruby] Release 0.46.0
Added
- Accept JSON strings in
validator_cls_for. ResolverandResolvedtypes for programmatic schema resolution.dereferencefunction to recursively inline$refreferences. #422ValidatorMapfor validating instances against subschemas identified by URI-fragment JSON pointer. #1075
Performance
- Avoid registry clones and document clones during validator construction. This improves real-world schema compilation by roughly 10-20% in internal benchmarks.
[Python] Release 0.46.0
Added
- Accept JSON strings in
validator_cls_for. ResolverandResolvedtypes for programmatic schema resolution.dereferencefunction to recursively inline$refreferences. #422ValidatorMapfor validating instances against subschemas identified by URI-fragment JSON pointer. #1075
Fixed
- Compilation error on
wasm32targets. #1093
Performance
- Avoid registry clones and document clones during validator construction. This improves real-world schema compilation by roughly 10-20% in internal benchmarks.
[Rust] Release 0.45.1
Fixed
- Incorrect handling of
multipleOfvalidation for negative numeric instances. - Incorrect handling of
durationformat when hours and seconds appear without minutes, or years and days without months.
[Ruby] Release 0.45.1
Fixed
- Incorrect handling of
multipleOfvalidation for negative numeric instances. - Incorrect handling of
durationformat when hours and seconds appear without minutes, or years and days without months.
[Python] Release 0.45.1
Fixed
- Incorrect handling of
multipleOfvalidation for negative numeric instances. - Incorrect handling of
durationformat when hours and seconds appear without minutes, or years and days without months.
[Rust] Release 0.45.0
Added
bundle(schema)/async_bundle(schema)/ValidationOptions::bundle: produce a Compound Schema Document with external$reftargets embedded in a draft-appropriate container (definitionsfor Draft 4/6/7,$defsfor Draft 2019-09/2020-12) while preserving$refvalues. #791.- CLI:
jsonschema validateandjsonschema bundlesubcommands. Flat invocation (jsonschema schema.json -i …) is deprecated — usejsonschema validateinstead. #791. ValidationError::absolute_keyword_location()to get the absolute keyword location URI of the schema node that produced the error. #737.
Changed
ValidationError::into_parts()now returnsValidationErrorPartsinstead of a tuple.
[Ruby] Release 0.45.0
Added
JSONSchema.bundle(schema, ...): produce a Compound Schema Document with all external$reftargets embedded in a draft-appropriate container (definitionsfor Draft 4/6/7,$defsfor Draft 2019-09/2020-12; Appendix B). #791.ValidationError#absolute_keyword_locationto get the absolute keyword location URI of the schema node that produced the error.
[Python] Release 0.45.0
Added
bundle(schema, ...): produce a Compound Schema Document with all external$reftargets embedded in a draft-appropriate container (definitionsfor Draft 4/6/7,$defsfor Draft 2019-09/2020-12; Appendix B). #791.ValidationError.absolute_keyword_locationto get the absolute keyword location URI of the schema node that produced the error.
[Rust] Release 0.44.1
Fixed
hostnameformat now applies legacy RFC 1034 semantics in Draft 4/6 and keeps IDNA A-label validation in Draft 7+.