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

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();