From 01b12eac3ae7245b9954e18008608b05cd3925c3 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Tue, 29 Oct 2024 10:24:50 +0000
Subject: [PATCH] chore(deps-rs): update jsonschema requirement from 0.24.0 to
0.26.0 in the minor group (#1616)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Updates the requirements on
[jsonschema](https://github.com/Stranger6667/jsonschema) to permit the
latest version.
Updates `jsonschema` to 0.24.3
Release notes
Sourced from jsonschema's
releases.
[Python] Release 0.24.3
Fixed
- Infinite recursion when using mutually recursive
$ref
in unevaluatedProperties
.
Changelog
Sourced from jsonschema's
changelog.
[0.24.3] - 2024-10-24
Fixed
- Infinite recursion when using mutually recursive
$ref
in unevaluatedProperties
.
[0.24.2] - 2024-10-24
Fixed
- Infinite recursion in some cases. #146
$ref
interaction with $recursiveAnchor
in
Draft 2019-09.
unevaluatedProperties
with $recursiveRef
& $dynamicRef
.
[0.24.1] - 2024-10-21
Fixed
- Incomplete external reference resolution.
[0.24.0] - 2024-10-20
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
[0.23.0] - 2024-10-12
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
.
... (truncated)
Commits
89d6abc
chore(rust): Release 0.24.3
091118b
fix: Infinite recursion when using mutually recursive $ref in
unevaluatedProp...
383eb83
docs: Update README.md
35139e5
chore(python): Release 0.24.2
4a02cca
chore(rust): Release 0.24.2
6d8ac59
test: Enable more tests
50d91e9
docs: Update README
63ac60a
refactor: Rework unevaluatedProperties
0ebad56
fix: $ref interaction with $recursiveAnchor in Draft 2019-09
1a6e41a
fix: Infinite recursion
- Additional commits viewable in compare
view
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-automerge-start)
[//]: # (dependabot-automerge-end)
---
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 ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore ` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore ` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore ` will
remove the ignore condition of the specified dependency and ignore
conditions
---------
Signed-off-by: dependabot[bot]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: AgustÃn Borgna
---
Cargo.toml | 2 +-
hugr-core/src/hugr/serialize/test.rs | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/Cargo.toml b/Cargo.toml
index 510dde7af..e046c799f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -36,7 +36,7 @@ downcast-rs = "1.2.0"
enum_dispatch = "0.3.11"
html-escape = "0.2.13"
itertools = "0.13.0"
-jsonschema = "0.24.0"
+jsonschema = "0.26.0"
lazy_static = "1.4.0"
num-rational = "0.4.1"
paste = "1.0"
diff --git a/hugr-core/src/hugr/serialize/test.rs b/hugr-core/src/hugr/serialize/test.rs
index 22ae2895c..4da2197ef 100644
--- a/hugr-core/src/hugr/serialize/test.rs
+++ b/hugr-core/src/hugr/serialize/test.rs
@@ -54,7 +54,8 @@ impl NamedSchema {
}
pub fn check(&self, val: &serde_json::Value) {
- if let Err(errors) = self.schema.validate(val) {
+ let mut errors = self.schema.iter_errors(val).peekable();
+ if errors.peek().is_some() {
// errors don't necessarily implement Debug
eprintln!("Schema failed to validate: {}", self.name);
for error in errors {