Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update rust crate jsonschema to 0.28 (1.x) #12209

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 4, 2025

This PR contains the following updates:

Package Type Update Change
jsonschema dependencies minor 0.18 -> 0.28

Release Notes

Stranger6667/jsonschema (jsonschema)

v0.28.1

Fixed
  • Handle fragment references within $id-anchored subschemas. #​640

v0.28.0

Added
  • Implement IntoIterator for Location to iterate over LocationSegment.
  • Implement FromIter for Location to build a Location from an iterator of LocationSegment.
  • ValidationError::to_owned method for converting errors into owned versions.
  • Meta-schema validation support. #​442

v0.27.1

Added
  • Implement ExactSizeIterator for PrimitiveTypesBitMapIterator.

v0.27.0

Added
  • Added masked() and masked_with() methods to ValidationError to support hiding sensitive data in error messages. #​434
Changed
  • Improved error message for unknown formats.
  • Bump MSRV to 1.71.1.

v0.26.2

Documentation
  • Fix documentation for validate

v0.26.1

Fixed
  • Return "Unknown specification" error on https-prefixed $schema for Draft 4, 5, 6. #​629

v0.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
  • BREAKING: Remove unused ValidationErrorKind::JSONParse, ValidationErrorKind::InvalidReference, ValidationErrorKind::Schema, ValidationErrorKind::FileNotFound and ValidationErrorKind::Utf8.
  • BREAKING: Validator::validate now returns the first error instead of an iterator in the Err variant.
Performance
  • Optimize error formatting in some cases.

v0.25.1

Fixed
  • Re-export referencing::Error as ReferencingError. #​614

v0.25.0

Important: This release removes deprecated old APIs. See the Migration Guide for details on transitioning to the new API.

Changed
  • BREAKING: Default to Draft 2020-12.
Removed
  • Deprecated draft201909, draft202012, and cli features.
  • Deprecated CompilationOptions, JSONSchema, PathChunkRef, JsonPointerNode, and SchemaResolverError aliases.
  • Deprecated jsonschema::compile, Validator::compile, ValidationOptions::compile, ValidationOptions::with_resolver, ValidationOptions::with_meta_schemas, ValidationOptions::with_document functions.
  • Deprecated SchemaResolver trait.

v0.24.3

Fixed
  • Infinite recursion when using mutually recursive $ref in unevaluatedProperties.

v0.24.2

Fixed
  • Infinite recursion in some cases. #​146
  • $ref interaction with $recursiveAnchor in Draft 2019-09.
  • unevaluatedProperties with $recursiveRef & $dynamicRef.

v0.24.1

Fixed
  • Incomplete external reference resolution.

v0.24.0

Added
  • Support $ref, $recursiveRef, and $dynamicRef in unevaluatedItems. #​287
  • Support for $vocabulary. #​263
Changed
  • Ignore prefixItems under Draft 2019-09 as it was introduced in Draft 2020-12.
Fixed
  • Numbers with zero fraction incorrectly handled in uniqueItems.
Performance
  • Speedup apply.

v0.23.0

Added
  • Partial support for unevaluatedItems, excluding references.
Changed
  • Improve error messages on WASM. #​568
  • Improve error messages on URI resolving and parsing.
  • BREAKING: Replace JsonPointer in favor of Location.
Deprecated
  • PathChunkRef in favor of LocationSegment.
  • JsonPointerNode in favor of LazyLocation.
Fixed
  • Resolving file references on Windows. #​441
  • Missing annotations from by-reference applicators. #​403
  • Relative keyword locations missing by-reference applicators (such as $ref or $dynamicRef).
Performance
  • Faster building of a validator.
  • Speedup hostname & idn-hostname formats validation.
  • Speedup apply.
Removed
  • JsonPointerNode::to_vec without a replacement.

v0.22.3

Performance
  • Speedup resolving.

v0.22.2

Fixed
  • ECMAScript 262 regex support.
Performance
  • Speedup json-pointer and relative-json-pointer formats validation.

v0.22.1

Fixed
  • Removed dbg! macro.

v0.22.0

Changed
  • Extend email validation. #​471
  • BREAKING: Custom retrievers now receive &Uri<&str> instead of &UriRef<&str>
  • Bump once_cell to 1.20.
  • Bump regex to 1.11.
Fixed
  • time format validation (leap seconds and second fractions).
  • duration format validation.
  • Panic on root $id without base. #​547
  • hostname format validation (double dot).
  • idn-hostname format validation. #​101
Performance
  • Faster building of a validator.
  • Speedup hostname, date, time, date-time, and duration formats validation.
  • Cache regular expressions for pattern. #​417

v0.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
  • BREAKING: Treat $ref as URI, not URL, and additionally normalize them. #​454
  • BREAKING: Resolve all non-recursive references eagerly.
  • BREAKING: Disallow use of fragments in $id. #​264
Deprecated
  • SchemaResolver trait and SchemaResolverError in favor of a simpler Retrieve that works with Box<dyn std::error::Error>.
    In turn, it also deprecates ValidationOptions::with_resolver in favor of ValidationOptions::with_retriever
  • ValidationOptions::with_document in favor of ValidationOptions::with_resource.
Fixed
  • Infinite recursion in unevaluatedProperties. #​420
  • Cross-draft validation from newer to older ones.
  • Changing base URI in folder.
  • Location-independent identifier in remote resource.
  • Missing some format validation for Draft 2020-12.
  • Incomplete iri & iri-reference validation.
Performance
  • Faster validation for uri, iri, uri-reference, and iri-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
  • New draft-specific modules for easier version-targeted validation:
    • jsonschema::draft4
    • jsonschema::draft6
    • jsonschema::draft7
    • jsonschema::draft201909
    • jsonschema::draft202012
      Each module provides new(), is_valid(), and options() functions.
  • jsonschema::options() function as a shortcut for jsonschema::Validator::options(), that allows for customization of the validation process.
Changed
  • Make Debug implementation for SchemaNode opaque.
  • Make jsonschema::validator_for and related functions return ValidationError<'static> in their Err variant.
    This change makes possible to use the ? operator to return errors from functions where the input schema is defined.
Deprecated
  • Rename CompilationOptions to ValidationOptions for clarity.
  • Rename JSONSchema to Validator for clarity. #​424
  • Rename JSONPointer to JsonPointer for consistency with naming conventions. #​424
  • Rename jsonschema::compile to jsonschema::validator_for.
  • Rename CompilationOptions::compile to ValidationOptions::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.

v0.19.1

Fixed

v0.19.0

Added
  • jsonschema::compile shortcut.
Changed
  • Bump MSRV to 1.70.
Fixed
  • uuid format validation.
  • Combination of unevaluatedProperties with allOf and oneOf. #​496
Deprecated
  • cli feature in favor of a separate jsonschema-cli crate.
  • draft201909 and draft202012 features. The relevant functionality is now enabled by default.
Performance
  • uuid validation via uuid-simd.

v0.18.3

Fixed
  • Changing base URI when $ref is present in drafts 7 and earlier.
  • Removed dbg! macro.

v0.18.2

Fixed
  • Ignoring $schema in resolved references.
  • Support integer-valued numbers for 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 inner String 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested a review from a team as a code owner January 4, 2025 19:51
@renovate renovate bot added the type: chore label Jan 4, 2025
Copy link
Contributor

github-actions bot commented Jan 4, 2025

Package Changes Through fadaeee

There are 1 changes which include tauri-utils with patch

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
tauri-utils 1.6.1 1.6.2
tauri-bundler 1.7.2 1.7.3
tauri-runtime 0.14.5 0.14.6
tauri-runtime-wry 0.14.10 0.14.11
tauri-codegen 1.4.5 1.4.6
tauri-macros 1.4.6 1.4.7
tauri-build 1.5.5 1.5.6
tauri 1.8.1 1.8.2
@tauri-apps/cli 1.6.4 1.6.5
tauri-cli 1.6.4 1.6.5

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

@renovate renovate bot force-pushed the renovate/1.x-jsonschema-0.x branch from 2e46901 to bde59ff Compare January 4, 2025 20:36
@renovate renovate bot force-pushed the renovate/1.x-jsonschema-0.x branch from bde59ff to fadaeee Compare January 4, 2025 20:49
@FabianLars FabianLars closed this Jan 4, 2025
@FabianLars FabianLars deleted the renovate/1.x-jsonschema-0.x branch January 4, 2025 21:48
Copy link
Contributor Author

renovate bot commented Jan 4, 2025

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update (0.28). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the ignoreDeps array of your Renovate config.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant