Skip to content
This repository was archived by the owner on Nov 30, 2022. It is now read-only.

Commit 006c982

Browse files
committed
Update jsonschema-valid dep to compat version
1 parent ad3a777 commit 006c982

File tree

10 files changed

+12
-10
lines changed

10 files changed

+12
-10
lines changed

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ schemars = { version = "0.8.0", optional = true }
2727
[dev-dependencies]
2828
serde_test = "1.0"
2929
serde_json = "1.0"
30-
jsonschema-valid = "0.4.0"
30+
31+
[dev-dependencies.jsonschema-valid-compat]
32+
version = "0.4.1-alpha.1"
3133

3234
[target.wasm32-unknown-unknown.dev-dependencies]
3335
wasm-bindgen-test = "0.3"

src/hash160.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ mod tests {
183183
let js = serde_json::from_str(&serde_json::to_string(&hash).unwrap()).unwrap();
184184
let s = schemars::schema_for! (hash160::Hash);
185185
let schema = serde_json::from_str(&serde_json::to_string(&s).unwrap()).unwrap();
186-
assert!(jsonschema_valid::Config::from_schema(&schema, None).unwrap().validate(&js).is_ok());
186+
assert!(jsonschema_valid_compat::Config::from_schema(&schema, None).unwrap().validate(&js).is_ok());
187187
}
188188
}
189189

src/hmac.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ mod tests {
406406
let js = serde_json::from_str(&serde_json::to_string(&hash).unwrap()).unwrap();
407407
let s = schemars::schema_for! (Hmac::<sha512::Hash>);
408408
let schema = serde_json::from_str(&serde_json::to_string(&s).unwrap()).unwrap();
409-
assert!(jsonschema_valid::Config::from_schema(&schema, None).unwrap().validate(&js).is_ok());
409+
assert!(jsonschema_valid_compat::Config::from_schema(&schema, None).unwrap().validate(&js).is_ok());
410410
}
411411
}
412412

src/ripemd160.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ mod tests {
563563
let js = serde_json::from_str(&serde_json::to_string(&hash).unwrap()).unwrap();
564564
let s = schemars::schema_for! (ripemd160::Hash);
565565
let schema = serde_json::from_str(&serde_json::to_string(&s).unwrap()).unwrap();
566-
assert!(jsonschema_valid::Config::from_schema(&schema, None).unwrap().validate(&js).is_ok());
566+
assert!(jsonschema_valid_compat::Config::from_schema(&schema, None).unwrap().validate(&js).is_ok());
567567
}
568568
}
569569

src/sha1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ mod tests {
288288
let js = serde_json::from_str(&serde_json::to_string(&hash).unwrap()).unwrap();
289289
let s = schemars::schema_for! (sha1::Hash);
290290
let schema = serde_json::from_str(&serde_json::to_string(&s).unwrap()).unwrap();
291-
assert!(jsonschema_valid::Config::from_schema(&schema, None).unwrap().validate(&js).is_ok());
291+
assert!(jsonschema_valid_compat::Config::from_schema(&schema, None).unwrap().validate(&js).is_ok());
292292
}
293293
}
294294

src/sha256.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ mod tests {
524524
let js = serde_json::from_str(&serde_json::to_string(&hash).unwrap()).unwrap();
525525
let s = schemars::schema_for! (sha256::Hash);
526526
let schema = serde_json::from_str(&serde_json::to_string(&s).unwrap()).unwrap();
527-
assert!(jsonschema_valid::Config::from_schema(&schema, None).unwrap().validate(&js).is_ok());
527+
assert!(jsonschema_valid_compat::Config::from_schema(&schema, None).unwrap().validate(&js).is_ok());
528528
}
529529

530530
#[cfg(target_arch = "wasm32")]

src/sha256d.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ input: &'static str,
166166
let js = serde_json::from_str(&serde_json::to_string(&hash).unwrap()).unwrap();
167167
let s = schemars::schema_for! (sha256d::Hash);
168168
let schema = serde_json::from_str(&serde_json::to_string(&s).unwrap()).unwrap();
169-
assert!(jsonschema_valid::Config::from_schema(&schema, None).unwrap().validate(&js).is_ok());
169+
assert!(jsonschema_valid_compat::Config::from_schema(&schema, None).unwrap().validate(&js).is_ok());
170170
}
171171

172172
}

src/sha256t.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,6 @@ mod tests {
286286
let js = serde_json::from_str(&serde_json::to_string(&hash).unwrap()).unwrap();
287287
let s = schemars::schema_for! (TestHash);
288288
let schema = serde_json::from_str(&serde_json::to_string(&s).unwrap()).unwrap();
289-
assert!(jsonschema_valid::Config::from_schema(&schema, None).unwrap().validate(&js).is_ok());
289+
assert!(jsonschema_valid_compat::Config::from_schema(&schema, None).unwrap().validate(&js).is_ok());
290290
}
291291
}

src/sha512.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ mod tests {
460460
let js = serde_json::from_str(&serde_json::to_string(&hash).unwrap()).unwrap();
461461
let s = schemars::schema_for! (sha512::Hash);
462462
let schema = serde_json::from_str(&serde_json::to_string(&s).unwrap()).unwrap();
463-
assert!(jsonschema_valid::Config::from_schema(&schema, None).unwrap().validate(&js).is_ok());
463+
assert!(jsonschema_valid_compat::Config::from_schema(&schema, None).unwrap().validate(&js).is_ok());
464464
}
465465
}
466466

src/siphash24.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ mod tests {
426426
let js = serde_json::from_str(&serde_json::to_string(&hash).unwrap()).unwrap();
427427
let s = schemars::schema_for! (Hash);
428428
let schema = serde_json::from_str(&serde_json::to_string(&s).unwrap()).unwrap();
429-
assert!(jsonschema_valid::Config::from_schema(&schema, None).unwrap().validate(&js).is_ok());
429+
assert!(jsonschema_valid_compat::Config::from_schema(&schema, None).unwrap().validate(&js).is_ok());
430430
}
431431
}
432432

0 commit comments

Comments
 (0)