Update Rust crate jsonschema to 0.46#24
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
ed3595d to
f5cf82c
Compare
f5cf82c to
78bacd6
Compare
78bacd6 to
65ceb21
Compare
65ceb21 to
e45b301
Compare
e45b301 to
c6e3844
Compare
8c74d74 to
c0d6e78
Compare
c0d6e78 to
0a1a09b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.37→0.46Release Notes
Stranger6667/jsonschema (jsonschema)
v0.46.5Fixed
$refURI fragments (e.g.#/$defs/Request%20class) are now decoded when stored asschema_path.v0.46.4Fixed
{0,N}quantifiers.v0.46.3Fixed
Validatorfor a schema with recursive$refor$dynamicRefis dropped. #1125wasm32-wasip1andwasm32-unknown-emscriptentargets.v0.46.2Fixed
requirednot enforced whenadditionalPropertiesis a schema object andrequiredlists exactly 2 keys.v0.46.1Fixed
requirednot enforced whenpropertieshas 15 or more entries andrequiredlists exactly 2 keys.v0.46.0Added
ValidatorMapfor validating instances against subschemas identified by URI-fragment JSON pointer. #1075-i/--instance(e.g.jsonschema validate schema.json -i *.json). #1085dereferencefunction to recursively inline$refreferences. #422jsonschema dereferencesubcommand to dereference a schema from the command line.Breaking Changes
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
v0.45.1Fixed
multipleOfvalidation for negative numeric instances.durationformat when hours and seconds appear without minutes, or years and days without months.v0.45.0Added
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.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.v0.44.1Fixed
hostnameformat now applies legacy RFC 1034 semantics in Draft 4/6 and keeps IDNA A-label validation in Draft 7+.v0.44.0Added
canonical::json::to_string(value)for canonical JSON serialization (stable key ordering and numeric normalization), useful for deduplicating equivalent JSON Schemas.Fixed
contentMediaType,contentEncoding, andcontentSchemakeywords.v0.43.0Performance
patternandpatternPropertiesfor^(a|b|c)$alternations via linear array scan.^\S*$patterns by replacing regex with a direct ECMA-262 whitespace check.Fixed
anyOf,format,unevaluatedProperties, andunevaluatedItemsnow correctly collect annotations per spec.v0.42.2Fixed
:–?(0x3A–0x3F) as valid digits duringdate,time, anddate-timeformat validation, potentially allowing malformed values to pass.Performance
patternprefix optimization to handle escaped slashes (^\/) and exact-match patterns (^\$ref$).enumfor cases when all variants are strings.v0.42.1Performance
$refresolution.format: "regex"validation.v0.42.0Added
JsonType::as_strmethod for zero-allocation type name access.ValidationErrorKind::keywordis now public.tls-ringfeature flag to opt into usingringas the TLS crypto provider instead of the defaultaws-lc-rs. #997.yaml/.yml) instance files in text output mode. #988Changed
aws-lc-rs. Users who needringcan opt in via thetls-ringfeature flag. This resolves potential conflicts with other libraries usingaws-lc-rs. #997Fixed
$reftargets that resolve to boolean schemas.Performance
OnceLockto avoid repeated formatting duringevaluate().v0.41.0Performance
uri-templateformat validation with a hand-rolled RFC 6570 parser.itemskeyword for simple type schemas ({"type": "string"},{"type": "number"}, etc.) to eliminate dynamic dispatch overhead.unevaluatedPropertiesvalidation via O(1) property lookup and short-circuitoneOfevaluation.v0.40.2Changed
trackerfield fromValidationErrorDebug output.aws-lc-rstoringto simplify building from source on some Linux distributions. #957Fixed
type: integervalidation in Draft 4 now correctly accepts large integers outside the i64/u64 range whenarbitrary-precisionfeature is enabled.v0.40.1Changed
ValidationErrorKind::Customnow includes akeywordfield containing the custom keyword name.Performance
patternPropertiesfor simple prefix patterns (e.g.,^x-).v0.40.0Added
HttpOptionsandValidationOptions::with_http_options()for configuring HTTP client behavior (timeouts, TLS verification, custom CA certificates) when fetching external schemas.--timeout,--connect-timeout,--insecure, and--cacertflags for HTTP configuration.v0.39.0Added
ValidationError::evaluation_path()for the dynamic path including$reftraversals.Changed
Keyword::validateno longer receives path parameters, andValidationError::customonly takes a message.Fixed
schemaLocationin evaluation output now excludes$ref/$dynamicRef/$recursiveRefper JSON Schema spec.Performance
evaluate(): 4.5-30x faster on complex schemas, 12-89% faster overall.oneOf/anyOf: ~4000x faster via memoization. #930v0.38.1Fixed
multipleOfvalidation for integer values between2^53andi64::MAXwitharbitrary-precisionfeature.v0.38.0Added
EmailOptionsfor configuringemailformat validation. #903Fixed
$refresolution when multiple refs target the same external URL with different fragments. #906multipleOfvalidation for large u64 values beyondi64::MAXwitharbitrary-precisionfeature.Validatornot beingSend + Syncon WASM targets. #915Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.