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

Changelog

Sourced from jsonschema's changelog.

[0.24.3] - 2024-10-24

Fixed

[0.24.2] - 2024-10-24

Fixed

[0.24.1] - 2024-10-21

Fixed

[0.24.0] - 2024-10-20

Added

Changed

Fixed

Performance

[0.23.0] - 2024-10-12

Added

Changed

... (truncated)

Commits

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 {