fix(deps): update rust crate jsonschema to 0.40.0 #613
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.33.0->0.40.00.40.2(+1)Release Notes
Stranger6667/jsonschema (jsonschema)
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. #915v0.37.4Fixed
$refchains (e.g.,a->b->a).$refresolution within fragment-extracted external resources. #892Removed
PrimitiveType&PrimitiveTypesBitMap.v0.37.3Fixed
$reftargets. #892v0.37.2Added
JsonTypeSet::len()andJsonTypeSet::remove()helpers for managing type sets.Fixed
$refreferences. #892v0.37.1Fixed
$refvalue. #886v0.37.0Added
evaluate()top-level function for convenient access to structured validation output.contentEncodingvalues per RFC 4648:base64url,base32,base32hex, andbase16. These encodings are now validated alongside the existingbase64support in Draft 6 and 7. #26validator.iter_errors(instance).into_errors(). It returns aValidationErrorstype that collects validation errors and implementsstd::error::Error. #451Changed
ValidationErrorfields are private; useinstance(),kind(),instance_path(), andschema_path()instead of accessing struct fields directly.ErrorIteratoris now a newtype wrapper instead ofBox<dyn ValidationErrorIterator>.Performance
validateand other APIs returningResult<_, ValidationError>are 5–10% faster in some workloads due to the smaller error handle.evaluate: Avoiding deep clones of unmatched keyword values (e.g.,title,description,examples) on every schema node evaluation by usingArcinternally. Can be multiple times faster for schemas with large annotations.v0.36.0Added
--output flag|list|hierarchicalmodes now stream newline-delimited JSON records with schema/instance metadata plus JSON Schema Output v1 payloads (defaulttextoutput remains human-readable).--errors-onlyflag to suppress successful validation output and only show failures.Validator::evaluate()API exposes JSON Schema Output v1 (flag/list/hierarchical) reports along with iterator helpers for annotations and errors.meta::validator_for()function to build validators for meta-schema validation with fullValidatorAPI access.Validatornow implementsClone. #809Removed
Validator::apply(),Output, andBasicOutputtypes have been removed in favor of the richerevaluate()API.v0.35.0Added
$schemaURIs can now be used by registering their meta-schemas in theRegistryviajsonschema::options().with_registry(). #664arbitrary-precisionfeature for exact numeric validation of large integers and decimals beyond standard floating-point limits. #103$schemaURIs for drafts 04, 06, and 07 (e.g.,https://json-schema.org/draft-07/schema). #802Changed
meta::is_validnow panics for unknown$schemavalues instead of defaulting to Draft 2020-12.meta::validatereturns an error for unknown$schemavalues. Usemeta::options().with_registry()to validate schemas against custom meta-schemas.Resource::from_contentsno longer returnsResultand always succeeds, since draft detection no longer fails for unknown$schemavalues.Removed
meta::try_is_validandmeta::try_validate. Usemeta::is_validandmeta::validateinstead.primitive_typemodule (deprecated since 0.30.0). Usejsonschema::typesinstead.Performance
required: short-circuit when the instance object has fewer properties than required keys.v0.34.0Changed
BasicOutputandAnnotationsno longer have lifetime parameters. Update type annotations fromBasicOutput<'a>toBasicOutputandAnnotations<'a>toAnnotations.referencing: URI caching now avoids hash collisions and reduces lock contention.fluent-urito0.4.1.1.83.0.Send + Syncbounds fromRetrieve/AsyncRetrieveonwasm32.draftX::meta::validator()helper so meta-schema validators lazy-init onwasm32while native targets keep borrowing the cachedjsonschema::meta::MetaValidator.Fixed
xn--labels, reject leading combining marks/uppercase prefixes, and enforce the latest JSON Schema punycode context rules.wasm32-unknown-unknownsupport. #785Performance
applynow reuses cached schema locations, URI fragments, and buffers for up to ~2.5x faster validation.$refcompilation deduplicates validator nodes, which decreases the memory usage and improves performance.applyon location-heavy workloads.unevaluatedPropertiesvalidation is 25-35% faster through optimized property marking and early-exit paths.unevaluatedPropertiesmemory usage drastically reduced by eliminating redundant registry clones during compilation.unevaluatedItemsvalidation is ~10% faster through early-exit optimizations and eliminating redundant validations in combinators.Removed
Validator::configto reduce the memory footprint.DRAFT4_META_VALIDATOR,DRAFT6_META_VALIDATOR,DRAFT7_META_VALIDATOR,DRAFT201909_META_VALIDATOR, andDRAFT202012_META_VALIDATORstatics. UsedraftX::meta::validator()helper functions instead (e.g.,draft7::meta::validator()).Configuration
📅 Schedule: Branch creation - "every weekend" in timezone America/Los_Angeles, Automerge - "after 8am and before 4pm on tuesday" in timezone America/Los_Angeles.
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.