Skip to content

Commit 86d0954

Browse files
committed
Simplify uuid test
The relevant jsonschema-rs bug was fixed long ago
1 parent 228d410 commit 86d0954

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

schemars/tests/integration/snapshots/schemars/tests/integration/uuid.rs~uuid.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://json-schema.org/draft/2019-09/schema",
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
33
"title": "Uuid",
44
"type": "string",
55
"format": "uuid"

schemars/tests/integration/uuid.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
use crate::prelude::*;
2-
use schemars::generate::SchemaSettings;
32
use uuid1::Uuid;
43

54
#[test]
65
fn uuid() {
7-
// Must run with draft 2019-09 due to https://github.com/Stranger6667/jsonschema-rs/issues/456
8-
test!(Uuid, SchemaSettings::draft2019_09())
6+
test!(Uuid)
97
.assert_snapshot()
108
.assert_allows_ser_roundtrip([Uuid::nil(), Uuid::max(), Uuid::from_u128(1234567890)])
119
.assert_matches_de_roundtrip(arbitrary_values());

0 commit comments

Comments
 (0)