Format strict array witness
This commit is contained in:
parent
44a35adb95
commit
9f8cf2e30f
1 changed files with 5 additions and 3 deletions
|
|
@ -3421,9 +3421,11 @@ mod tests {
|
|||
let schema = exact_string_array_schema(&BTreeSet::new(), 0, 8);
|
||||
assert_eq!(schema["maxItems"], 0);
|
||||
assert_eq!(schema["items"]["type"], "string");
|
||||
assert!(jsonschema::validator_for(&schema)
|
||||
.unwrap()
|
||||
.is_valid(&serde_json::json!([])));
|
||||
assert!(
|
||||
jsonschema::validator_for(&schema)
|
||||
.unwrap()
|
||||
.is_valid(&serde_json::json!([]))
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
|
|||
Loading…
Reference in a new issue