Debian Codegraph @

encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/idn-hostname.json

raw
1 [
2 {
3 "description": "validation of internationalized host names",
4 "schema": {
5 "$schema": "https://json-schema.org/draft/2019-09/schema",
6 "format": "idn-hostname"
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": "a valid host name (example.test in Hangul)",
62 "data": "실례.테스트",
63 "valid": true,
64 "skip": {
65 "v3-roundtrip": "could not extract schema"
66 }
67 },
68 {
69 "description": "illegal first char U+302E Hangul single dot tone mark",
70 "data": "〮실례.테스트",
71 "valid": false,
72 "skip": {
73 "v3": "unexpected success",
74 "v3-roundtrip": "could not extract schema"
75 }
76 },
77 {
78 "description": "contains illegal char U+302E Hangul single dot tone mark",
79 "data": "실〮례.테스트",
80 "valid": false,
81 "skip": {
82 "v3": "unexpected success",
83 "v3-roundtrip": "could not extract schema"
84 }
85 },
86 {
87 "description": "a host name with a component too long",
88 "data": "실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실례례테스트례례례례례례례례례례례례례례례례례테스트례례례례례례례례례례례례례례례례례례례테스트례례례례례례례례례례례례테스트례례실례.테스트",
89 "valid": false,
90 "skip": {
91 "v3": "unexpected success",
92 "v3-roundtrip": "could not extract schema"
93 }
94 },
95 {
96 "description": "invalid label, correct Punycode",
97 "comment": "https://tools.ietf.org/html/rfc5890#section-2.3.2.1 https://tools.ietf.org/html/rfc5891#section-4.4 https://tools.ietf.org/html/rfc3492#section-7.1",
98 "data": "-\u003e $1.00 \u003c--",
99 "valid": false,
100 "skip": {
101 "v3": "unexpected success",
102 "v3-roundtrip": "could not extract schema"
103 }
104 },
105 {
106 "description": "valid Chinese Punycode",
107 "comment": "https://tools.ietf.org/html/rfc5890#section-2.3.2.1 https://tools.ietf.org/html/rfc5891#section-4.4",
108 "data": "xn--ihqwcrb4cv8a8dqg056pqjye",
109 "valid": true,
110 "skip": {
111 "v3-roundtrip": "could not extract schema"
112 }
113 },
114 {
115 "description": "invalid Punycode",
116 "comment": "https://tools.ietf.org/html/rfc5891#section-4.4 https://tools.ietf.org/html/rfc5890#section-2.3.2.1",
117 "data": "xn--X",
118 "valid": false,
119 "skip": {
120 "v3": "unexpected success",
121 "v3-roundtrip": "could not extract schema"
122 }
123 },
124 {
125 "description": "U-label contains \"--\" in the 3rd and 4th position",
126 "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.1 https://tools.ietf.org/html/rfc5890#section-2.3.2.1",
127 "data": "XN--aa---o47jg78q",
128 "valid": false,
129 "skip": {
130 "v3": "unexpected success",
131 "v3-roundtrip": "could not extract schema"
132 }
133 },
134 {
135 "description": "U-label starts with a dash",
136 "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.1",
137 "data": "-hello",
138 "valid": false,
139 "skip": {
140 "v3": "unexpected success",
141 "v3-roundtrip": "could not extract schema"
142 }
143 },
144 {
145 "description": "U-label ends with a dash",
146 "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.1",
147 "data": "hello-",
148 "valid": false,
149 "skip": {
150 "v3": "unexpected success",
151 "v3-roundtrip": "could not extract schema"
152 }
153 },
154 {
155 "description": "U-label starts and ends with a dash",
156 "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.1",
157 "data": "-hello-",
158 "valid": false,
159 "skip": {
160 "v3": "unexpected success",
161 "v3-roundtrip": "could not extract schema"
162 }
163 },
164 {
165 "description": "Begins with a Spacing Combining Mark",
166 "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.2",
167 "data": "ःhello",
168 "valid": false,
169 "skip": {
170 "v3": "unexpected success",
171 "v3-roundtrip": "could not extract schema"
172 }
173 },
174 {
175 "description": "Begins with a Nonspacing Mark",
176 "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.2",
177 "data": "̀hello",
178 "valid": false,
179 "skip": {
180 "v3": "unexpected success",
181 "v3-roundtrip": "could not extract schema"
182 }
183 },
184 {
185 "description": "Begins with an Enclosing Mark",
186 "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.2",
187 "data": "҈hello",
188 "valid": false,
189 "skip": {
190 "v3": "unexpected success",
191 "v3-roundtrip": "could not extract schema"
192 }
193 },
194 {
195 "description": "Exceptions that are PVALID, left-to-right chars",
196 "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.2 https://tools.ietf.org/html/rfc5892#section-2.6",
197 "data": "ßς་〇",
198 "valid": true,
199 "skip": {
200 "v3-roundtrip": "could not extract schema"
201 }
202 },
203 {
204 "description": "Exceptions that are PVALID, right-to-left chars",
205 "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.2 https://tools.ietf.org/html/rfc5892#section-2.6",
206 "data": "۽۾",
207 "valid": true,
208 "skip": {
209 "v3-roundtrip": "could not extract schema"
210 }
211 },
212 {
213 "description": "Exceptions that are DISALLOWED, right-to-left chars",
214 "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.2 https://tools.ietf.org/html/rfc5892#section-2.6",
215 "data": "ـߺ",
216 "valid": false,
217 "skip": {
218 "v3": "unexpected success",
219 "v3-roundtrip": "could not extract schema"
220 }
221 },
222 {
223 "description": "Exceptions that are DISALLOWED, left-to-right chars",
224 "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.2 https://tools.ietf.org/html/rfc5892#section-2.6 Note: The two combining marks (U+302E and U+302F) are in the middle and not at the start",
225 "data": "〱〲〳〴〵〮〯〻",
226 "valid": false,
227 "skip": {
228 "v3": "unexpected success",
229 "v3-roundtrip": "could not extract schema"
230 }
231 },
232 {
233 "description": "MIDDLE DOT with no preceding 'l'",
234 "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.3",
235 "data": "a·l",
236 "valid": false,
237 "skip": {
238 "v3": "unexpected success",
239 "v3-roundtrip": "could not extract schema"
240 }
241 },
242 {
243 "description": "MIDDLE DOT with nothing preceding",
244 "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.3",
245 "data": "·l",
246 "valid": false,
247 "skip": {
248 "v3": "unexpected success",
249 "v3-roundtrip": "could not extract schema"
250 }
251 },
252 {
253 "description": "MIDDLE DOT with no following 'l'",
254 "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.3",
255 "data": "l·a",
256 "valid": false,
257 "skip": {
258 "v3": "unexpected success",
259 "v3-roundtrip": "could not extract schema"
260 }
261 },
262 {
263 "description": "MIDDLE DOT with nothing following",
264 "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.3",
265 "data": "l·",
266 "valid": false,
267 "skip": {
268 "v3": "unexpected success",
269 "v3-roundtrip": "could not extract schema"
270 }
271 },
272 {
273 "description": "MIDDLE DOT with surrounding 'l's",
274 "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.3",
275 "data": "l·l",
276 "valid": true,
277 "skip": {
278 "v3-roundtrip": "could not extract schema"
279 }
280 },
281 {
282 "description": "Greek KERAIA not followed by Greek",
283 "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.4",
284 "data": "α͵S",
285 "valid": false,
286 "skip": {
287 "v3": "unexpected success",
288 "v3-roundtrip": "could not extract schema"
289 }
290 },
291 {
292 "description": "Greek KERAIA not followed by anything",
293 "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.4",
294 "data": "α͵",
295 "valid": false,
296 "skip": {
297 "v3": "unexpected success",
298 "v3-roundtrip": "could not extract schema"
299 }
300 },
301 {
302 "description": "Greek KERAIA followed by Greek",
303 "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.4",
304 "data": "α͵β",
305 "valid": true,
306 "skip": {
307 "v3-roundtrip": "could not extract schema"
308 }
309 },
310 {
311 "description": "Hebrew GERESH not preceded by Hebrew",
312 "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.5",
313 "data": "A׳ב",
314 "valid": false,
315 "skip": {
316 "v3": "unexpected success",
317 "v3-roundtrip": "could not extract schema"
318 }
319 },
320 {
321 "description": "Hebrew GERESH not preceded by anything",
322 "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.5",
323 "data": "׳ב",
324 "valid": false,
325 "skip": {
326 "v3": "unexpected success",
327 "v3-roundtrip": "could not extract schema"
328 }
329 },
330 {
331 "description": "Hebrew GERESH preceded by Hebrew",
332 "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.5",
333 "data": "א׳ב",
334 "valid": true,
335 "skip": {
336 "v3-roundtrip": "could not extract schema"
337 }
338 },
339 {
340 "description": "Hebrew GERSHAYIM not preceded by Hebrew",
341 "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.6",
342 "data": "A״ב",
343 "valid": false,
344 "skip": {
345 "v3": "unexpected success",
346 "v3-roundtrip": "could not extract schema"
347 }
348 },
349 {
350 "description": "Hebrew GERSHAYIM not preceded by anything",
351 "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.6",
352 "data": "״ב",
353 "valid": false,
354 "skip": {
355 "v3": "unexpected success",
356 "v3-roundtrip": "could not extract schema"
357 }
358 },
359 {
360 "description": "Hebrew GERSHAYIM preceded by Hebrew",
361 "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.6",
362 "data": "א״ב",
363 "valid": true,
364 "skip": {
365 "v3-roundtrip": "could not extract schema"
366 }
367 },
368 {
369 "description": "KATAKANA MIDDLE DOT with no Hiragana, Katakana, or Han",
370 "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.7",
371 "data": "def・abc",
372 "valid": false,
373 "skip": {
374 "v3": "unexpected success",
375 "v3-roundtrip": "could not extract schema"
376 }
377 },
378 {
379 "description": "KATAKANA MIDDLE DOT with no other characters",
380 "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.7",
381 "data": "・",
382 "valid": false,
383 "skip": {
384 "v3": "unexpected success",
385 "v3-roundtrip": "could not extract schema"
386 }
387 },
388 {
389 "description": "KATAKANA MIDDLE DOT with Hiragana",
390 "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.7",
391 "data": "・ぁ",
392 "valid": true,
393 "skip": {
394 "v3-roundtrip": "could not extract schema"
395 }
396 },
397 {
398 "description": "KATAKANA MIDDLE DOT with Katakana",
399 "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.7",
400 "data": "・ァ",
401 "valid": true,
402 "skip": {
403 "v3-roundtrip": "could not extract schema"
404 }
405 },
406 {
407 "description": "KATAKANA MIDDLE DOT with Han",
408 "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.7",
409 "data": "・丈",
410 "valid": true,
411 "skip": {
412 "v3-roundtrip": "could not extract schema"
413 }
414 },
415 {
416 "description": "Arabic-Indic digits mixed with Extended Arabic-Indic digits",
417 "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.8",
418 "data": "ب٠۰",
419 "valid": false,
420 "skip": {
421 "v3": "unexpected success",
422 "v3-roundtrip": "could not extract schema"
423 }
424 },
425 {
426 "description": "Arabic-Indic digits not mixed with Extended Arabic-Indic digits",
427 "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.8",
428 "data": "ب٠ب",
429 "valid": true,
430 "skip": {
431 "v3-roundtrip": "could not extract schema"
432 }
433 },
434 {
435 "description": "Extended Arabic-Indic digits not mixed with Arabic-Indic digits",
436 "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.9",
437 "data": "۰0",
438 "valid": true,
439 "skip": {
440 "v3-roundtrip": "could not extract schema"
441 }
442 },
443 {
444 "description": "ZERO WIDTH JOINER not preceded by Virama",
445 "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.2 https://www.unicode.org/review/pr-37.pdf",
446 "data": "क‍ष",
447 "valid": false,
448 "skip": {
449 "v3": "unexpected success",
450 "v3-roundtrip": "could not extract schema"
451 }
452 },
453 {
454 "description": "ZERO WIDTH JOINER not preceded by anything",
455 "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.2 https://www.unicode.org/review/pr-37.pdf",
456 "data": "‍ष",
457 "valid": false,
458 "skip": {
459 "v3": "unexpected success",
460 "v3-roundtrip": "could not extract schema"
461 }
462 },
463 {
464 "description": "ZERO WIDTH JOINER preceded by Virama",
465 "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.2 https://www.unicode.org/review/pr-37.pdf",
466 "data": "क्‍ष",
467 "valid": true,
468 "skip": {
469 "v3-roundtrip": "could not extract schema"
470 }
471 },
472 {
473 "description": "ZERO WIDTH NON-JOINER preceded by Virama",
474 "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.1",
475 "data": "क्‌ष",
476 "valid": true,
477 "skip": {
478 "v3-roundtrip": "could not extract schema"
479 }
480 },
481 {
482 "description": "ZERO WIDTH NON-JOINER not preceded by Virama but matches regexp",
483 "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.1 https://www.w3.org/TR/alreq/#h_disjoining_enforcement",
484 "data": "بي‌بي",
485 "valid": true,
486 "skip": {
487 "v3-roundtrip": "could not extract schema"
488 }
489 },
490 {
491 "description": "single label",
492 "data": "hostname",
493 "valid": true,
494 "skip": {
495 "v3-roundtrip": "could not extract schema"
496 }
497 },
498 {
499 "description": "single label with hyphen",
500 "data": "host-name",
501 "valid": true,
502 "skip": {
503 "v3-roundtrip": "could not extract schema"
504 }
505 },
506 {
507 "description": "single label with digits",
508 "data": "h0stn4me",
509 "valid": true,
510 "skip": {
511 "v3-roundtrip": "could not extract schema"
512 }
513 },
514 {
515 "description": "single label starting with digit",
516 "data": "1host",
517 "valid": true,
518 "skip": {
519 "v3-roundtrip": "could not extract schema"
520 }
521 },
522 {
523 "description": "single label ending with digit",
524 "data": "hostnam3",
525 "valid": true,
526 "skip": {
527 "v3-roundtrip": "could not extract schema"
528 }
529 }
530 ]
531 }
532 ]