From 768756fab643ca0adf4dd6acb0f19568281c5349 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 17 Feb 2025 01:32:30 +0000 Subject: [PATCH 1/2] chore(deps): update jsonschema requirement from 0.28.3 to 0.29.0 Updates the requirements on [jsonschema](https://github.com/Stranger6667/jsonschema) to permit the latest version. - [Release notes](https://github.com/Stranger6667/jsonschema/releases) - [Changelog](https://github.com/Stranger6667/jsonschema/blob/master/CHANGELOG.md) - [Commits](https://github.com/Stranger6667/jsonschema/compare/rust-v0.28.3...rust-v0.28.3) --- updated-dependencies: - dependency-name: jsonschema dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 59cd5a8b..6aa4cddb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -54,7 +54,7 @@ geo-types = "0.7.15" geoarrow = "0.4.0-beta.3" geojson = "0.24.1" http = "1.1" -jsonschema = { version = "0.28.3", default-features = false } +jsonschema = { version = "0.29.0", default-features = false } libduckdb-sys = "=1.1.1" log = "0.4.25" mime = "0.3.17" From 55682fab8cf3937a4b29d8e321607ab40e2283af Mon Sep 17 00:00:00 2001 From: Pete Gadomski Date: Sun, 16 Feb 2025 20:43:46 -0500 Subject: [PATCH 2/2] fix: small API tweaks --- crates/core/src/validate/validator.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/core/src/validate/validator.rs b/crates/core/src/validate/validator.rs index 54e61713..e3c9d0b3 100644 --- a/crates/core/src/validate/validator.rs +++ b/crates/core/src/validate/validator.rs @@ -29,8 +29,8 @@ impl Validator { /// let validator = Validator::new().unwrap(); /// ``` pub fn new() -> Result { - let mut validation_options = jsonschema::options(); - let _ = validation_options + let validation_options = jsonschema::options(); + let validation_options = validation_options .with_resources(prebuild_resources().into_iter()) .with_retriever(Retriever( Client::builder().user_agent(crate::user_agent()).build()?, @@ -213,7 +213,7 @@ impl Validator { impl Retrieve for Retriever { fn retrieve( &self, - uri: &Uri<&str>, + uri: &Uri, ) -> std::result::Result> { let response = self.0.get(uri.as_str()).send()?.error_for_status()?; let value = response.json()?;