| 1 |
[ |
| 2 |
{ |
| 3 |
"description": "uuid format", |
| 4 |
"schema": { |
| 5 |
"$schema": "https://json-schema.org/draft/2019-09/schema", |
| 6 |
"format": "uuid" |
| 7 |
}, |
| 8 |
"skip": { |
| 9 |
"v3-roundtrip": "generation only supported in version https://json-schema.org/draft/2020-12/schema" |
| 10 |
}, |
| 11 |
"tests": [ |
| 12 |
{ |
| 13 |
"description": "all string formats ignore integers", |
| 14 |
"data": 12, |
| 15 |
"valid": true, |
| 16 |
"skip": { |
| 17 |
"v3-roundtrip": "could not extract schema" |
| 18 |
} |
| 19 |
}, |
| 20 |
{ |
| 21 |
"description": "all string formats ignore floats", |
| 22 |
"data": 13.7, |
| 23 |
"valid": true, |
| 24 |
"skip": { |
| 25 |
"v3-roundtrip": "could not extract schema" |
| 26 |
} |
| 27 |
}, |
| 28 |
{ |
| 29 |
"description": "all string formats ignore objects", |
| 30 |
"data": {}, |
| 31 |
"valid": true, |
| 32 |
"skip": { |
| 33 |
"v3-roundtrip": "could not extract schema" |
| 34 |
} |
| 35 |
}, |
| 36 |
{ |
| 37 |
"description": "all string formats ignore arrays", |
| 38 |
"data": [], |
| 39 |
"valid": true, |
| 40 |
"skip": { |
| 41 |
"v3-roundtrip": "could not extract schema" |
| 42 |
} |
| 43 |
}, |
| 44 |
{ |
| 45 |
"description": "all string formats ignore booleans", |
| 46 |
"data": false, |
| 47 |
"valid": true, |
| 48 |
"skip": { |
| 49 |
"v3-roundtrip": "could not extract schema" |
| 50 |
} |
| 51 |
}, |
| 52 |
{ |
| 53 |
"description": "all string formats ignore nulls", |
| 54 |
"data": null, |
| 55 |
"valid": true, |
| 56 |
"skip": { |
| 57 |
"v3-roundtrip": "could not extract schema" |
| 58 |
} |
| 59 |
}, |
| 60 |
{ |
| 61 |
"description": "all upper-case", |
| 62 |
"data": "2EB8AA08-AA98-11EA-B4AA-73B441D16380", |
| 63 |
"valid": true, |
| 64 |
"skip": { |
| 65 |
"v3-roundtrip": "could not extract schema" |
| 66 |
} |
| 67 |
}, |
| 68 |
{ |
| 69 |
"description": "all lower-case", |
| 70 |
"data": "2eb8aa08-aa98-11ea-b4aa-73b441d16380", |
| 71 |
"valid": true, |
| 72 |
"skip": { |
| 73 |
"v3-roundtrip": "could not extract schema" |
| 74 |
} |
| 75 |
}, |
| 76 |
{ |
| 77 |
"description": "mixed case", |
| 78 |
"data": "2eb8aa08-AA98-11ea-B4Aa-73B441D16380", |
| 79 |
"valid": true, |
| 80 |
"skip": { |
| 81 |
"v3-roundtrip": "could not extract schema" |
| 82 |
} |
| 83 |
}, |
| 84 |
{ |
| 85 |
"description": "all zeroes is valid", |
| 86 |
"data": "00000000-0000-0000-0000-000000000000", |
| 87 |
"valid": true, |
| 88 |
"skip": { |
| 89 |
"v3-roundtrip": "could not extract schema" |
| 90 |
} |
| 91 |
}, |
| 92 |
{ |
| 93 |
"description": "wrong length", |
| 94 |
"data": "2eb8aa08-aa98-11ea-b4aa-73b441d1638", |
| 95 |
"valid": false, |
| 96 |
"skip": { |
| 97 |
"v3": "unexpected success", |
| 98 |
"v3-roundtrip": "could not extract schema" |
| 99 |
} |
| 100 |
}, |
| 101 |
{ |
| 102 |
"description": "missing section", |
| 103 |
"data": "2eb8aa08-aa98-11ea-73b441d16380", |
| 104 |
"valid": false, |
| 105 |
"skip": { |
| 106 |
"v3": "unexpected success", |
| 107 |
"v3-roundtrip": "could not extract schema" |
| 108 |
} |
| 109 |
}, |
| 110 |
{ |
| 111 |
"description": "bad characters (not hex)", |
| 112 |
"data": "2eb8aa08-aa98-11ea-b4ga-73b441d16380", |
| 113 |
"valid": false, |
| 114 |
"skip": { |
| 115 |
"v3": "unexpected success", |
| 116 |
"v3-roundtrip": "could not extract schema" |
| 117 |
} |
| 118 |
}, |
| 119 |
{ |
| 120 |
"description": "no dashes", |
| 121 |
"data": "2eb8aa08aa9811eab4aa73b441d16380", |
| 122 |
"valid": false, |
| 123 |
"skip": { |
| 124 |
"v3": "unexpected success", |
| 125 |
"v3-roundtrip": "could not extract schema" |
| 126 |
} |
| 127 |
}, |
| 128 |
{ |
| 129 |
"description": "too few dashes", |
| 130 |
"data": "2eb8aa08aa98-11ea-b4aa73b441d16380", |
| 131 |
"valid": false, |
| 132 |
"skip": { |
| 133 |
"v3": "unexpected success", |
| 134 |
"v3-roundtrip": "could not extract schema" |
| 135 |
} |
| 136 |
}, |
| 137 |
{ |
| 138 |
"description": "too many dashes", |
| 139 |
"data": "2eb8-aa08-aa98-11ea-b4aa73b44-1d16380", |
| 140 |
"valid": false, |
| 141 |
"skip": { |
| 142 |
"v3": "unexpected success", |
| 143 |
"v3-roundtrip": "could not extract schema" |
| 144 |
} |
| 145 |
}, |
| 146 |
{ |
| 147 |
"description": "dashes in the wrong spot", |
| 148 |
"data": "2eb8aa08aa9811eab4aa73b441d16380----", |
| 149 |
"valid": false, |
| 150 |
"skip": { |
| 151 |
"v3": "unexpected success", |
| 152 |
"v3-roundtrip": "could not extract schema" |
| 153 |
} |
| 154 |
}, |
| 155 |
{ |
| 156 |
"description": "valid version 4", |
| 157 |
"data": "98d80576-482e-427f-8434-7f86890ab222", |
| 158 |
"valid": true, |
| 159 |
"skip": { |
| 160 |
"v3-roundtrip": "could not extract schema" |
| 161 |
} |
| 162 |
}, |
| 163 |
{ |
| 164 |
"description": "valid version 5", |
| 165 |
"data": "99c17cbb-656f-564a-940f-1a4568f03487", |
| 166 |
"valid": true, |
| 167 |
"skip": { |
| 168 |
"v3-roundtrip": "could not extract schema" |
| 169 |
} |
| 170 |
}, |
| 171 |
{ |
| 172 |
"description": "hypothetical version 6", |
| 173 |
"data": "99c17cbb-656f-664a-940f-1a4568f03487", |
| 174 |
"valid": true, |
| 175 |
"skip": { |
| 176 |
"v3-roundtrip": "could not extract schema" |
| 177 |
} |
| 178 |
}, |
| 179 |
{ |
| 180 |
"description": "hypothetical version 15", |
| 181 |
"data": "99c17cbb-656f-f64a-940f-1a4568f03487", |
| 182 |
"valid": true, |
| 183 |
"skip": { |
| 184 |
"v3-roundtrip": "could not extract schema" |
| 185 |
} |
| 186 |
} |
| 187 |
] |
| 188 |
} |
| 189 |
] |