chore(deps): bump jsonschema from 0.28.3 to 0.29.0

Bumps [jsonschema](https://github.com/Stranger6667/jsonschema) from 0.28.3 to 0.29.0.
- [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.29.0)

---
updated-dependencies:
- dependency-name: jsonschema
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
dependabot[bot] 2025-02-10 22:32:26 +00:00 committed by Gerald Pinder
parent e3278d2e18
commit e88c7561a9
3 changed files with 9 additions and 8 deletions

9
Cargo.lock generated
View file

@ -2210,9 +2210,9 @@ dependencies = [
[[package]]
name = "jsonschema"
version = "0.28.3"
version = "0.29.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4b8f66fe41fa46a5c83ed1c717b7e0b4635988f427083108c8cf0a882cc13441"
checksum = "3c59cb1733c34377b6067a0419befd7f25073c5249ec3b0614a482bf499e1df5"
dependencies = [
"ahash 0.8.11",
"base64 0.22.1",
@ -3559,13 +3559,14 @@ dependencies = [
[[package]]
name = "referencing"
version = "0.28.3"
version = "0.29.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d0dcb5ab28989ad7c91eb1b9531a37a1a137cc69a0499aee4117cae4a107c464"
checksum = "6ce52678d53e5ee37e4af0a9036ca834d0cd34b33c82457c6b06a24f8d783344"
dependencies = [
"ahash 0.8.11",
"fluent-uri",
"once_cell",
"parking_lot",
"percent-encoding",
"serde_json",
]

View file

@ -72,7 +72,7 @@ clap-verbosity-flag = "3"
clap_complete = "4"
clap_complete_nushell = "4"
fuzzy-matcher = "0.3"
jsonschema = { version = "0.28", optional = true }
jsonschema = { version = "0.29", optional = true }
open = "5"
os_info = "3"
rayon = { version = "1", optional = true }

View file

@ -257,7 +257,7 @@ fn process_anyof_error(err: &ValidationError<'_>) -> Option<Vec<ValidationError<
};
trace!("Schema URI: {uri}");
let schema = ASYNC_RUNTIME.block_on(cache_retrieve(&uri.borrow())).ok()?;
let schema = ASYNC_RUNTIME.block_on(cache_retrieve(&uri)).ok()?;
let validator = jsonschema::options()
.with_retriever(ModuleSchemaRetriever)
@ -307,14 +307,14 @@ struct ModuleSchemaRetriever;
impl Retrieve for ModuleSchemaRetriever {
fn retrieve(
&self,
uri: &Uri<&str>,
uri: &Uri<String>,
) -> Result<serde_json::Value, Box<dyn std::error::Error + Send + Sync>> {
Ok(ASYNC_RUNTIME.block_on(cache_retrieve(uri))?)
}
}
#[cached(result = true, key = "String", convert = r#"{ format!("{uri}") }"#)]
async fn cache_retrieve(uri: &Uri<&str>) -> miette::Result<Value> {
async fn cache_retrieve(uri: &Uri<String>) -> miette::Result<Value> {
let scheme = uri.scheme();
let path = uri.path();