Debian Codegraph @

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

raw
1 [
2 {
3 "description": "uuid format",
4 "schema": {
5 "$schema": "https://json-schema.org/draft/2020-12/schema",
6 "format": "uuid"
7 },
8 "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 },
39 {
40 "description": "all upper-case",
41 "data": "2EB8AA08-AA98-11EA-B4AA-73B441D16380",
42 "valid": true
43 },
44 {
45 "description": "all lower-case",
46 "data": "2eb8aa08-aa98-11ea-b4aa-73b441d16380",
47 "valid": true
48 },
49 {
50 "description": "mixed case",
51 "data": "2eb8aa08-AA98-11ea-B4Aa-73B441D16380",
52 "valid": true
53 },
54 {
55 "description": "all zeroes is valid",
56 "data": "00000000-0000-0000-0000-000000000000",
57 "valid": true
58 },
59 {
60 "description": "wrong length",
61 "data": "2eb8aa08-aa98-11ea-b4aa-73b441d1638",
62 "valid": false
63 },
64 {
65 "description": "missing section",
66 "data": "2eb8aa08-aa98-11ea-73b441d16380",
67 "valid": false
68 },
69 {
70 "description": "bad characters (not hex)",
71 "data": "2eb8aa08-aa98-11ea-b4ga-73b441d16380",
72 "valid": false
73 },
74 {
75 "description": "no dashes",
76 "data": "2eb8aa08aa9811eab4aa73b441d16380",
77 "valid": false
78 },
79 {
80 "description": "too few dashes",
81 "data": "2eb8aa08aa98-11ea-b4aa73b441d16380",
82 "valid": false
83 },
84 {
85 "description": "too many dashes",
86 "data": "2eb8-aa08-aa98-11ea-b4aa73b44-1d16380",
87 "valid": false
88 },
89 {
90 "description": "dashes in the wrong spot",
91 "data": "2eb8aa08aa9811eab4aa73b441d16380----",
92 "valid": false
93 },
94 {
95 "description": "shifted dashes",
96 "data": "2eb8aa0-8aa98-11e-ab4aa7-3b441d16380",
97 "valid": false
98 },
99 {
100 "description": "valid version 4",
101 "data": "98d80576-482e-427f-8434-7f86890ab222",
102 "valid": true
103 },
104 {
105 "description": "valid version 5",
106 "data": "99c17cbb-656f-564a-940f-1a4568f03487",
107 "valid": true
108 },
109 {
110 "description": "hypothetical version 6",
111 "data": "99c17cbb-656f-664a-940f-1a4568f03487",
112 "valid": true
113 },
114 {
115 "description": "hypothetical version 15",
116 "data": "99c17cbb-656f-f64a-940f-1a4568f03487",
117 "valid": true
118 }
119 ]
120 }
121 ]