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