Skip to content

Commit 31796b3

Browse files
add non-string uuid tests
1 parent 9251ebf commit 31796b3

File tree

3 files changed

+90
-0
lines changed

3 files changed

+90
-0
lines changed

tests/draft-next/optional/format/uuid.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,36 @@
66
"format": "uuid"
77
},
88
"tests": [
9+
{
10+
"description": "all string formats ignore integers",
11+
"data": 12,
12+
"valid": true
13+
},
14+
{
15+
"description": "all string formats ignore floats",
16+
"data": 13.7,
17+
"valid": true
18+
},
19+
{
20+
"description": "all string formats ignore objects",
21+
"data": {},
22+
"valid": true
23+
},
24+
{
25+
"description": "all string formats ignore arrays",
26+
"data": [],
27+
"valid": true
28+
},
29+
{
30+
"description": "all string formats ignore booleans",
31+
"data": false,
32+
"valid": true
33+
},
34+
{
35+
"description": "all string formats ignore nulls",
36+
"data": null,
37+
"valid": true
38+
},
939
{
1040
"description": "all upper-case",
1141
"data": "2EB8AA08-AA98-11EA-B4AA-73B441D16380",

tests/draft2019-09/optional/format/uuid.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,36 @@
66
"format": "uuid"
77
},
88
"tests": [
9+
{
10+
"description": "all string formats ignore integers",
11+
"data": 12,
12+
"valid": true
13+
},
14+
{
15+
"description": "all string formats ignore floats",
16+
"data": 13.7,
17+
"valid": true
18+
},
19+
{
20+
"description": "all string formats ignore objects",
21+
"data": {},
22+
"valid": true
23+
},
24+
{
25+
"description": "all string formats ignore arrays",
26+
"data": [],
27+
"valid": true
28+
},
29+
{
30+
"description": "all string formats ignore booleans",
31+
"data": false,
32+
"valid": true
33+
},
34+
{
35+
"description": "all string formats ignore nulls",
36+
"data": null,
37+
"valid": true
38+
},
939
{
1040
"description": "all upper-case",
1141
"data": "2EB8AA08-AA98-11EA-B4AA-73B441D16380",

tests/draft2020-12/optional/format/uuid.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,36 @@
66
"format": "uuid"
77
},
88
"tests": [
9+
{
10+
"description": "all string formats ignore integers",
11+
"data": 12,
12+
"valid": true
13+
},
14+
{
15+
"description": "all string formats ignore floats",
16+
"data": 13.7,
17+
"valid": true
18+
},
19+
{
20+
"description": "all string formats ignore objects",
21+
"data": {},
22+
"valid": true
23+
},
24+
{
25+
"description": "all string formats ignore arrays",
26+
"data": [],
27+
"valid": true
28+
},
29+
{
30+
"description": "all string formats ignore booleans",
31+
"data": false,
32+
"valid": true
33+
},
34+
{
35+
"description": "all string formats ignore nulls",
36+
"data": null,
37+
"valid": true
38+
},
939
{
1040
"description": "all upper-case",
1141
"data": "2EB8AA08-AA98-11EA-B4AA-73B441D16380",

0 commit comments

Comments
 (0)