chore(deps): update rust crate jsonschema to 0.28 (1.x) #12209
Closed
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.18
->0.28
Release Notes
Stranger6667/jsonschema (jsonschema)
v0.28.1
Fixed
$id
-anchored subschemas. #640v0.28.0
Added
IntoIterator
forLocation
to iterate overLocationSegment
.FromIter
forLocation
to build aLocation
from an iterator ofLocationSegment
.ValidationError::to_owned
method for converting errors into owned versions.v0.27.1
Added
ExactSizeIterator
forPrimitiveTypesBitMapIterator
.v0.27.0
Added
masked()
andmasked_with()
methods toValidationError
to support hiding sensitive data in error messages. #434Changed
1.71.1
.v0.26.2
Documentation
validate
v0.26.1
Fixed
https
-prefixed$schema
for Draft 4, 5, 6. #629v0.26.0
Important: This release contains breaking changes. See the Migration Guide for details on transitioning to the new API.
Added
Validator::iter_errors
that iterates over all validation errors.Changed
ValidationErrorKind::JSONParse
,ValidationErrorKind::InvalidReference
,ValidationErrorKind::Schema
,ValidationErrorKind::FileNotFound
andValidationErrorKind::Utf8
.Validator::validate
now returns the first error instead of an iterator in theErr
variant.Performance
v0.25.1
Fixed
referencing::Error
asReferencingError
. #614v0.25.0
Important: This release removes deprecated old APIs. See the Migration Guide for details on transitioning to the new API.
Changed
Removed
draft201909
,draft202012
, andcli
features.CompilationOptions
,JSONSchema
,PathChunkRef
,JsonPointerNode
, andSchemaResolverError
aliases.jsonschema::compile
,Validator::compile
,ValidationOptions::compile
,ValidationOptions::with_resolver
,ValidationOptions::with_meta_schemas
,ValidationOptions::with_document
functions.SchemaResolver
trait.v0.24.3
Fixed
$ref
inunevaluatedProperties
.v0.24.2
Fixed
$ref
interaction with$recursiveAnchor
in Draft 2019-09.unevaluatedProperties
with$recursiveRef
&$dynamicRef
.v0.24.1
Fixed
v0.24.0
Added
$ref
,$recursiveRef
, and$dynamicRef
inunevaluatedItems
. #287$vocabulary
. #263Changed
prefixItems
under Draft 2019-09 as it was introduced in Draft 2020-12.Fixed
uniqueItems
.Performance
apply
.v0.23.0
Added
unevaluatedItems
, excluding references.Changed
JsonPointer
in favor ofLocation
.Deprecated
PathChunkRef
in favor ofLocationSegment
.JsonPointerNode
in favor ofLazyLocation
.Fixed
$ref
or$dynamicRef
).Performance
hostname
&idn-hostname
formats validation.apply
.Removed
JsonPointerNode::to_vec
without a replacement.v0.22.3
Performance
v0.22.2
Fixed
Performance
json-pointer
andrelative-json-pointer
formats validation.v0.22.1
Fixed
dbg!
macro.v0.22.0
Changed
&Uri<&str>
instead of&UriRef<&str>
once_cell
to1.20
.regex
to1.11
.Fixed
time
format validation (leap seconds and second fractions).duration
format validation.$id
without base. #547hostname
format validation (double dot).idn-hostname
format validation. #101Performance
hostname
,date
,time
,date-time
, andduration
formats validation.pattern
. #417v0.21.0
Important: This release brings a complete rework of reference resolving which deprecates some older APIs.
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
$anchor
support.$recursiveRef
&$recursiveAnchor
support in Draft 2019-09.$dynamicRef
&$dynamicAnchor
support in Draft 2020-12.Changed
$ref
as URI, not URL, and additionally normalize them. #454$id
. #264Deprecated
SchemaResolver
trait andSchemaResolverError
in favor of a simplerRetrieve
that works withBox<dyn std::error::Error>
.In turn, it also deprecates
ValidationOptions::with_resolver
in favor ofValidationOptions::with_retriever
ValidationOptions::with_document
in favor ofValidationOptions::with_resource
.Fixed
unevaluatedProperties
. #420iri
&iri-reference
validation.Performance
uri
,iri
,uri-reference
, andiri-reference
formats.v0.20.0
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
jsonschema::draft4
jsonschema::draft6
jsonschema::draft7
jsonschema::draft201909
jsonschema::draft202012
Each module provides
new()
,is_valid()
, andoptions()
functions.jsonschema::options()
function as a shortcut forjsonschema::Validator::options()
, that allows for customization of the validation process.Changed
Debug
implementation forSchemaNode
opaque.jsonschema::validator_for
and related functions returnValidationError<'static>
in theirErr
variant.This change makes possible to use the
?
operator to return errors from functions where the input schema is defined.Deprecated
CompilationOptions
toValidationOptions
for clarity.JSONSchema
toValidator
for clarity. #424JSONPointer
toJsonPointer
for consistency with naming conventions. #424jsonschema::compile
tojsonschema::validator_for
.CompilationOptions::compile
toValidationOptions::build
.Old names are retained for backward compatibility but will be removed in a future release.
Fixed
v0.19.1
Fixed
ipv4
format validation. #512v0.19.0
Added
jsonschema::compile
shortcut.Changed
1.70
.Fixed
uuid
format validation.unevaluatedProperties
withallOf
andoneOf
. #496Deprecated
cli
feature in favor of a separatejsonschema-cli
crate.draft201909
anddraft202012
features. The relevant functionality is now enabled by default.Performance
uuid
validation viauuid-simd
.v0.18.3
Fixed
$ref
is present in drafts 7 and earlier.dbg!
macro.v0.18.2
Fixed
$schema
in resolved references.maxItems
,maxLength
,maxProperties
,maxContains
,minItems
,minLength
,minProperties
,minContains
.Deprecated
with_meta_schemas()
method. Meta schemas are included by default.v0.18.1
Added
ErrorDescription::into_inner
to retrieve the innerString
value.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ 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 was generated by Mend Renovate. View the repository job log.