From ed2adb23c7dc6e87de7c824a90152dcbb6725a4c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 19 Jan 2026 04:43:59 +0000 Subject: [PATCH 1/2] build(deps): update jsonschema requirement from 0.23 to 0.40 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.23.0...rust-v0.40.0) --- updated-dependencies: - dependency-name: jsonschema dependency-version: 0.40.0 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 d8c76a9c..906b4690 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -61,7 +61,7 @@ byteorder = { version = "1.4.2", default-features = false } hex = { version = "0.4", default-features = false } num-bigint = "0.4.0" rug = { version = "1.6.0", default-features = false } -jsonschema = { version = "0.23", default-features = false } +jsonschema = { version = "0.40", default-features = false } serde_derive = "1.0.101" ethbloom = { path = "./ethbloom", default-features = false } From fe6cf63862406515c6a86acc632f7078b07c61b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20K=C3=B6cher?= Date: Fri, 30 Jan 2026 22:19:42 +0100 Subject: [PATCH 2/2] fix: adapt to jsonschema 0.40 API changes ValidationError no longer implements IntoIterator, so remove the .map_err() call that was iterating over errors. --- primitive-types/src/json_schema.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/primitive-types/src/json_schema.rs b/primitive-types/src/json_schema.rs index 8c2be25c..f528f1d8 100644 --- a/primitive-types/src/json_schema.rs +++ b/primitive-types/src/json_schema.rs @@ -53,10 +53,7 @@ mod tests { .build(&schema_json) .unwrap(); let value = serde_json::to_value("0x55086adeca661185c437d92b9818e6eda6d0d047").unwrap(); - schema - .validate(&value) - .map_err(|e| e.into_iter().map(|e| e.to_string()).collect::>()) - .unwrap(); + schema.validate(&value).unwrap(); let value = serde_json::to_value("0X0E9C8DA9FD4BDD3281879D9E328D8D74D02558CC").unwrap(); assert!(schema.validate(&value).is_ok());