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

Bump jsonschema from 0.18.1 to 0.21.0 #32

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 30, 2024

Bumps jsonschema from 0.18.1 to 0.21.0.

Release notes

Sourced from jsonschema's releases.

[Rust] Release 0.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.

[Python] Release 0.20.0

Added

  • New draft-specific validator classes: Draft4Validator, Draft6Validator, Draft7Validator, Draft201909Validator, and Draft202012Validator.
  • validator_for function for automatic draft detection.

Changed

  • The JSONSchema class has been renamed to Validator. The old name is retained for backward compatibility but will be removed in a future release.

Deprecated

  • The JSONSchema class is deprecated. Use the validator_for function or draft-specific validators instead. You can use validator_for instead of JSONSchema.from_str.
  • Constants jsonschema_rs.DRAFT4, jsonschema_rs.DRAFT6, jsonschema_rs.DRAFT7, jsonschema_rs.DRAFT201909, and jsonschema_rs.DRAFT202012 are deprecated in favor of draft-specific validator classes.

... (truncated)

Changelog

Sourced from jsonschema's changelog.

[0.21.0] - 2024-09-29

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.

[0.20.0] - 2024-09-18

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.

... (truncated)

Commits
  • c4d5505 chore(rust): Release 0.21.0
  • 1744a1e chore: Publish jsonschema-referencing too
  • 35ebeab build: Check if crates bcan be published
  • c2a623f docs: Update BENCHMARKS.md
  • 534ef95 docs: Update benchmarks
  • be14c1e fix: Improve validation of iri & iri-reference
  • dfa74db feat: dynamicRef and dynamicAnchor
  • efe45b9 test: Improve CLI test
  • 95652ef build: Fix keyword benchmarks
  • c5643c9 docs: Update docs
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [jsonschema](https://github.com/Stranger6667/jsonschema-rs) from 0.18.1 to 0.21.0.
- [Release notes](https://github.com/Stranger6667/jsonschema-rs/releases)
- [Changelog](https://github.com/Stranger6667/jsonschema-rs/blob/master/CHANGELOG.md)
- [Commits](Stranger6667/jsonschema@rust-v0.18.1...rust-v0.21.0)

---
updated-dependencies:
- dependency-name: jsonschema
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file rust Pull requests that update Rust code labels Sep 30, 2024
Copy link

Coverage after merging dependabot/cargo/jsonschema-0.21.0 into main will be

21.98%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   lib.rs0%100%0%0%23–25, 27–55, 57–60, 62–80
   mods.rs19.01%100%15.38%19.41%103–105, 107–109, 11, 110–112, 114, 116–119, 12, 120–124, 126–129, 13, 130–136, 138–139, 14, 140–145, 148–149, 15, 150–155, 158–159, 16, 160–165, 167, 169, 17, 172–179, 18, 180, 182, 185–189, 19, 190–193, 195, 198–199, 20, 200–209, 21, 210–211, 214–215, 22, 223–227, 23, 232–239, 24, 240–246, 248–249, 25, 250–258, 26, 260–264, 266–269, 27, 270–272, 274–279, 28, 280–281, 284–289, 29, 290–293, 295–297, 30, 300–301, 31–33, 35–40, 58–59, 67, 69
   updater.rs38.97%100%33.33%39.52%102–107, 109–144, 146–151, 154–155, 183, 185, 31, 33, 35, 38–40, 42–55, 57, 59, 99
   utils.rs42.93%100%28.57%44.12%125–139, 141, 144–153, 155–159, 161–167, 170, 172–184, 186, 188, 244–247, 249, 25, 250–251, 254–256, 258–259, 26, 260–261, 263–267, 269, 27–33, 35–39, 41, 43, 47–51
   core.rs0%100%0%0%100–101, 103–118, 12, 129, 13, 132–135, 137–139, 14, 140–142, 144–146, 149, 15, 150–158, 160, 163, 165–166, 168–169, 17, 170–176, 178–179, 18, 180, 182–187, 19, 190–191, 193–197, 199, 20, 200–201, 21–25, 27, 29–44, 46–47, 49–54, 56, 58–60, 62–63, 65–73, 75, 78–83, 85, 87–91, 93, 96, 98–99
   tests.rs100%100%100%100%
src/structs
   localmod.rs0%100%0%0%101–107, 110–114, 117, 119–127, 129–137, 139–141, 17–24, 27, 45–79, 8, 80–82, 85, 88–89, 93–99
   modinfo.rs0%100%0%0%16–28, 32–40, 42, 46–48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants