Skip to content

Commit bc89452

Browse files
chore(deps): update jsonschema requirement from 0.28.3 to 0.29.0 (#622)
Updates the requirements on [jsonschema](https://github.com/Stranger6667/jsonschema) to permit the latest version. <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.28.3</h2> <h3>Fixed</h3> <ul> <li>Panic when schema registry base URI contains an unencoded fragment.</li> </ul> <h3>Performance</h3> <ul> <li>Fewer JSON pointer lookups.</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.28.3] - 2025-01-24</h2> <h3>Fixed</h3> <ul> <li>Panic when schema registry base URI contains an unencoded fragment.</li> </ul> <h3>Performance</h3> <ul> <li>Fewer JSON pointer lookups.</li> </ul> <h2>[0.28.2] - 2025-01-22</h2> <h3>Fixed</h3> <ul> <li>Resolving external references that nested inside local references. <a href="https://redirect.github.com/Stranger6667/jsonschema/issues/671">#671</a></li> <li>Resolving relative references with fragments against base URIs that also contain fragments. <a href="https://redirect.github.com/Stranger6667/jsonschema/issues/666">#666</a></li> </ul> <h3>Performance</h3> <ul> <li>Faster JSON pointer resolution.</li> </ul> <h2>[0.28.1] - 2024-12-31</h2> <h3>Fixed</h3> <ul> <li>Handle fragment references within <code>$id</code>-anchored subschemas. <a href="https://redirect.github.com/Stranger6667/jsonschema/issues/640">#640</a></li> </ul> <h2>[0.28.0] - 2024-12-29</h2> <h3>Added</h3> <ul> <li>Implement <code>IntoIterator</code> for <code>Location</code> to iterate over <code>LocationSegment</code>.</li> <li>Implement <code>FromIter</code> for <code>Location</code> to build a <code>Location</code> from an iterator of <code>LocationSegment</code>.</li> <li><code>ValidationError::to_owned</code> method for converting errors into owned versions.</li> <li>Meta-schema validation support. <a href="https://redirect.github.com/Stranger6667/jsonschema/issues/442">#442</a></li> </ul> <h2>[0.27.1] - 2024-12-24</h2> <h3>Added</h3> <ul> <li>Implement <code>ExactSizeIterator</code> for <code>PrimitiveTypesBitMapIterator</code>.</li> </ul> <h2>[0.27.0] - 2024-12-23</h2> <h3>Added</h3> <ul> <li>Added <code>masked()</code> and <code>masked_with()</code> methods to <code>ValidationError</code> to support hiding sensitive data in error messages. <a href="https://redirect.github.com/Stranger6667/jsonschema/issues/434">#434</a></li> </ul> <h3>Changed</h3> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/Stranger6667/jsonschema/compare/rust-v0.28.3...rust-v0.28.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 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) </details> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pete Gadomski <pete.gadomski@gmail.com>
1 parent ea6efd1 commit bc89452

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ geo-types = "0.7.15"
5454
geoarrow = "0.4.0-beta.3"
5555
geojson = "0.24.1"
5656
http = "1.1"
57-
jsonschema = { version = "0.28.3", default-features = false }
57+
jsonschema = { version = "0.29.0", default-features = false }
5858
libduckdb-sys = "=1.1.1"
5959
log = "0.4.25"
6060
mime = "0.3.17"

crates/core/src/validate/validator.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ impl Validator {
2929
/// let validator = Validator::new().unwrap();
3030
/// ```
3131
pub fn new() -> Result<Validator> {
32-
let mut validation_options = jsonschema::options();
33-
let _ = validation_options
32+
let validation_options = jsonschema::options();
33+
let validation_options = validation_options
3434
.with_resources(prebuild_resources().into_iter())
3535
.with_retriever(Retriever(
3636
Client::builder().user_agent(crate::user_agent()).build()?,
@@ -213,7 +213,7 @@ impl Validator {
213213
impl Retrieve for Retriever {
214214
fn retrieve(
215215
&self,
216-
uri: &Uri<&str>,
216+
uri: &Uri<String>,
217217
) -> std::result::Result<Value, Box<dyn std::error::Error + Send + Sync>> {
218218
let response = self.0.get(uri.as_str()).send()?.error_for_status()?;
219219
let value = response.json()?;

0 commit comments

Comments
 (0)