Skip to content

Commit

Permalink
chore(deps-rs): update jsonschema requirement from 0.24.0 to 0.26.0 i…
Browse files Browse the repository at this point in the history
…n the minor group (#1616)

Updates the requirements on
[jsonschema](https://github.com/Stranger6667/jsonschema) to permit the
latest version.
Updates `jsonschema` to 0.24.3
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/Stranger6667/jsonschema/releases">jsonschema's
releases</a>.</em></p>
<blockquote>
<h2>[Python] Release 0.24.3</h2>
<h3>Fixed</h3>
<ul>
<li>Infinite recursion when using mutually recursive <code>$ref</code>
in <code>unevaluatedProperties</code>.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/Stranger6667/jsonschema/blob/master/CHANGELOG.md">jsonschema's
changelog</a>.</em></p>
<blockquote>
<h2>[0.24.3] - 2024-10-24</h2>
<h3>Fixed</h3>
<ul>
<li>Infinite recursion when using mutually recursive <code>$ref</code>
in <code>unevaluatedProperties</code>.</li>
</ul>
<h2>[0.24.2] - 2024-10-24</h2>
<h3>Fixed</h3>
<ul>
<li>Infinite recursion in some cases. <a
href="https://redirect.github.com/Stranger6667/jsonschema/issues/146">#146</a></li>
<li><code>$ref</code> interaction with <code>$recursiveAnchor</code> in
Draft 2019-09.</li>
<li><code>unevaluatedProperties</code> with <code>$recursiveRef</code>
&amp; <code>$dynamicRef</code>.</li>
</ul>
<h2>[0.24.1] - 2024-10-21</h2>
<h3>Fixed</h3>
<ul>
<li>Incomplete external reference resolution.</li>
</ul>
<h2>[0.24.0] - 2024-10-20</h2>
<h3>Added</h3>
<ul>
<li>Support <code>$ref</code>, <code>$recursiveRef</code>, and
<code>$dynamicRef</code> in <code>unevaluatedItems</code>. <a
href="https://redirect.github.com/Stranger6667/jsonschema/issues/287">#287</a></li>
<li>Support for <code>$vocabulary</code>. <a
href="https://redirect.github.com/Stranger6667/jsonschema/issues/263">#263</a></li>
</ul>
<h3>Changed</h3>
<ul>
<li>Ignore <code>prefixItems</code> under Draft 2019-09 as it was
introduced in Draft 2020-12.</li>
</ul>
<h3>Fixed</h3>
<ul>
<li>Numbers with zero fraction incorrectly handled in
<code>uniqueItems</code>.</li>
</ul>
<h3>Performance</h3>
<ul>
<li>Speedup <code>apply</code>.</li>
</ul>
<h2>[0.23.0] - 2024-10-12</h2>
<h3>Added</h3>
<ul>
<li>Partial support for <code>unevaluatedItems</code>, excluding
references.</li>
</ul>
<h3>Changed</h3>
<ul>
<li>Improve error messages on WASM. <a
href="https://redirect.github.com/Stranger6667/jsonschema/issues/568">#568</a></li>
<li>Improve error messages on URI resolving and parsing.</li>
<li><strong>BREAKING</strong>: Replace <code>JsonPointer</code> in favor
of <code>Location</code>.</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/Stranger6667/jsonschema/commit/89d6abcaa9e8e9369d1e02e8fa03b00176dd14cb"><code>89d6abc</code></a>
chore(rust): Release 0.24.3</li>
<li><a
href="https://github.com/Stranger6667/jsonschema/commit/091118bb848390daf0ab223e3b5228d59f0ce92c"><code>091118b</code></a>
fix: Infinite recursion when using mutually recursive $ref in
unevaluatedProp...</li>
<li><a
href="https://github.com/Stranger6667/jsonschema/commit/383eb830c323242e897e21c04991d4b73cb81b6e"><code>383eb83</code></a>
docs: Update README.md</li>
<li><a
href="https://github.com/Stranger6667/jsonschema/commit/35139e53493ba8510e7226c9f33b596253880d92"><code>35139e5</code></a>
chore(python): Release 0.24.2</li>
<li><a
href="https://github.com/Stranger6667/jsonschema/commit/4a02cca730b01d72f88ff6e382d66fa0e18226ae"><code>4a02cca</code></a>
chore(rust): Release 0.24.2</li>
<li><a
href="https://github.com/Stranger6667/jsonschema/commit/6d8ac59a45a03500c3d06673a3d6fedfd5b3bfdf"><code>6d8ac59</code></a>
test: Enable more tests</li>
<li><a
href="https://github.com/Stranger6667/jsonschema/commit/50d91e9ef49d771ac34bf942e77ff873dacc256a"><code>50d91e9</code></a>
docs: Update README</li>
<li><a
href="https://github.com/Stranger6667/jsonschema/commit/63ac60a7da76d8b58d6c643a111fcf4c8d68da9d"><code>63ac60a</code></a>
refactor: Rework unevaluatedProperties</li>
<li><a
href="https://github.com/Stranger6667/jsonschema/commit/0ebad5619f4a693173ff1189dd3065882078f4ce"><code>0ebad56</code></a>
fix: $ref interaction with $recursiveAnchor in Draft 2019-09</li>
<li><a
href="https://github.com/Stranger6667/jsonschema/commit/1a6e41a983484234e5f8f6569e4f578c88b989bb"><code>1a6e41a</code></a>
fix: Infinite recursion</li>
<li>Additional commits viewable in <a
href="https://github.com/Stranger6667/jsonschema/compare/rust-v0.24.0...rust-v0.24.3">compare
view</a></li>
</ul>
</details>
<br />


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)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

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 <dependency name> 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 <dependency name> 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 <dependency name>` 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 <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Agustín Borgna <[email protected]>
  • Loading branch information
dependabot[bot] and aborgna-q authored Oct 29, 2024
1 parent 87150fa commit 01b12ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion hugr-core/src/hugr/serialize/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 01b12ea

Please sign in to comment.