Debian Codegraph @

share/tests/v1/optional/format-annotation.json

raw
1 [
2 {
3 "description": "email format",
4 "schema": {
5 "$schema": "https://json-schema.org/v1",
6 "format": "email"
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": "invalid email string is only an annotation by default",
41 "data": "2962",
42 "valid": true
43 }
44 ]
45 },
46 {
47 "description": "idn-email format",
48 "schema": {
49 "$schema": "https://json-schema.org/v1",
50 "format": "idn-email"
51 },
52 "tests": [
53 {
54 "description": "all string formats ignore integers",
55 "data": 12,
56 "valid": true
57 },
58 {
59 "description": "all string formats ignore floats",
60 "data": 13.7,
61 "valid": true
62 },
63 {
64 "description": "all string formats ignore objects",
65 "data": {},
66 "valid": true
67 },
68 {
69 "description": "all string formats ignore arrays",
70 "data": [],
71 "valid": true
72 },
73 {
74 "description": "all string formats ignore booleans",
75 "data": false,
76 "valid": true
77 },
78 {
79 "description": "all string formats ignore nulls",
80 "data": null,
81 "valid": true
82 },
83 {
84 "description": "invalid idn-email string is only an annotation by default",
85 "data": "2962",
86 "valid": true
87 }
88 ]
89 },
90 {
91 "description": "regex format",
92 "schema": {
93 "$schema": "https://json-schema.org/v1",
94 "format": "regex"
95 },
96 "tests": [
97 {
98 "description": "all string formats ignore integers",
99 "data": 12,
100 "valid": true
101 },
102 {
103 "description": "all string formats ignore floats",
104 "data": 13.7,
105 "valid": true
106 },
107 {
108 "description": "all string formats ignore objects",
109 "data": {},
110 "valid": true
111 },
112 {
113 "description": "all string formats ignore arrays",
114 "data": [],
115 "valid": true
116 },
117 {
118 "description": "all string formats ignore booleans",
119 "data": false,
120 "valid": true
121 },
122 {
123 "description": "all string formats ignore nulls",
124 "data": null,
125 "valid": true
126 },
127 {
128 "description": "invalid regex string is only an annotation by default",
129 "data": "^(abc]",
130 "valid": true
131 }
132 ]
133 },
134 {
135 "description": "ipv4 format",
136 "schema": {
137 "$schema": "https://json-schema.org/v1",
138 "format": "ipv4"
139 },
140 "tests": [
141 {
142 "description": "all string formats ignore integers",
143 "data": 12,
144 "valid": true
145 },
146 {
147 "description": "all string formats ignore floats",
148 "data": 13.7,
149 "valid": true
150 },
151 {
152 "description": "all string formats ignore objects",
153 "data": {},
154 "valid": true
155 },
156 {
157 "description": "all string formats ignore arrays",
158 "data": [],
159 "valid": true
160 },
161 {
162 "description": "all string formats ignore booleans",
163 "data": false,
164 "valid": true
165 },
166 {
167 "description": "all string formats ignore nulls",
168 "data": null,
169 "valid": true
170 },
171 {
172 "description": "invalid ipv4 string is only an annotation by default",
173 "data": "127.0.0.0.1",
174 "valid": true
175 }
176 ]
177 },
178 {
179 "description": "ipv6 format",
180 "schema": {
181 "$schema": "https://json-schema.org/v1",
182 "format": "ipv6"
183 },
184 "tests": [
185 {
186 "description": "all string formats ignore integers",
187 "data": 12,
188 "valid": true
189 },
190 {
191 "description": "all string formats ignore floats",
192 "data": 13.7,
193 "valid": true
194 },
195 {
196 "description": "all string formats ignore objects",
197 "data": {},
198 "valid": true
199 },
200 {
201 "description": "all string formats ignore arrays",
202 "data": [],
203 "valid": true
204 },
205 {
206 "description": "all string formats ignore booleans",
207 "data": false,
208 "valid": true
209 },
210 {
211 "description": "all string formats ignore nulls",
212 "data": null,
213 "valid": true
214 },
215 {
216 "description": "invalid ipv6 string is only an annotation by default",
217 "data": "12345::",
218 "valid": true
219 }
220 ]
221 },
222 {
223 "description": "idn-hostname format",
224 "schema": {
225 "$schema": "https://json-schema.org/v1",
226 "format": "idn-hostname"
227 },
228 "tests": [
229 {
230 "description": "all string formats ignore integers",
231 "data": 12,
232 "valid": true
233 },
234 {
235 "description": "all string formats ignore floats",
236 "data": 13.7,
237 "valid": true
238 },
239 {
240 "description": "all string formats ignore objects",
241 "data": {},
242 "valid": true
243 },
244 {
245 "description": "all string formats ignore arrays",
246 "data": [],
247 "valid": true
248 },
249 {
250 "description": "all string formats ignore booleans",
251 "data": false,
252 "valid": true
253 },
254 {
255 "description": "all string formats ignore nulls",
256 "data": null,
257 "valid": true
258 },
259 {
260 "description": "invalid idn-hostname string is only an annotation by default",
261 "data": "〮실례.테스트",
262 "valid": true
263 }
264 ]
265 },
266 {
267 "description": "hostname format",
268 "schema": {
269 "$schema": "https://json-schema.org/v1",
270 "format": "hostname"
271 },
272 "tests": [
273 {
274 "description": "all string formats ignore integers",
275 "data": 12,
276 "valid": true
277 },
278 {
279 "description": "all string formats ignore floats",
280 "data": 13.7,
281 "valid": true
282 },
283 {
284 "description": "all string formats ignore objects",
285 "data": {},
286 "valid": true
287 },
288 {
289 "description": "all string formats ignore arrays",
290 "data": [],
291 "valid": true
292 },
293 {
294 "description": "all string formats ignore booleans",
295 "data": false,
296 "valid": true
297 },
298 {
299 "description": "all string formats ignore nulls",
300 "data": null,
301 "valid": true
302 },
303 {
304 "description": "invalid hostname string is only an annotation by default",
305 "data": "-a-host-name-that-starts-with--",
306 "valid": true
307 }
308 ]
309 },
310 {
311 "description": "date format",
312 "schema": {
313 "$schema": "https://json-schema.org/v1",
314 "format": "date"
315 },
316 "tests": [
317 {
318 "description": "all string formats ignore integers",
319 "data": 12,
320 "valid": true
321 },
322 {
323 "description": "all string formats ignore floats",
324 "data": 13.7,
325 "valid": true
326 },
327 {
328 "description": "all string formats ignore objects",
329 "data": {},
330 "valid": true
331 },
332 {
333 "description": "all string formats ignore arrays",
334 "data": [],
335 "valid": true
336 },
337 {
338 "description": "all string formats ignore booleans",
339 "data": false,
340 "valid": true
341 },
342 {
343 "description": "all string formats ignore nulls",
344 "data": null,
345 "valid": true
346 },
347 {
348 "description": "invalid date string is only an annotation by default",
349 "data": "06/19/1963",
350 "valid": true
351 }
352 ]
353 },
354 {
355 "description": "date-time format",
356 "schema": {
357 "$schema": "https://json-schema.org/v1",
358 "format": "date-time"
359 },
360 "tests": [
361 {
362 "description": "all string formats ignore integers",
363 "data": 12,
364 "valid": true
365 },
366 {
367 "description": "all string formats ignore floats",
368 "data": 13.7,
369 "valid": true
370 },
371 {
372 "description": "all string formats ignore objects",
373 "data": {},
374 "valid": true
375 },
376 {
377 "description": "all string formats ignore arrays",
378 "data": [],
379 "valid": true
380 },
381 {
382 "description": "all string formats ignore booleans",
383 "data": false,
384 "valid": true
385 },
386 {
387 "description": "all string formats ignore nulls",
388 "data": null,
389 "valid": true
390 },
391 {
392 "description": "invalid date-time string is only an annotation by default",
393 "data": "1990-02-31T15:59:60.123-08:00",
394 "valid": true
395 }
396 ]
397 },
398 {
399 "description": "time format",
400 "schema": {
401 "$schema": "https://json-schema.org/v1",
402 "format": "time"
403 },
404 "tests": [
405 {
406 "description": "all string formats ignore integers",
407 "data": 12,
408 "valid": true
409 },
410 {
411 "description": "all string formats ignore floats",
412 "data": 13.7,
413 "valid": true
414 },
415 {
416 "description": "all string formats ignore objects",
417 "data": {},
418 "valid": true
419 },
420 {
421 "description": "all string formats ignore arrays",
422 "data": [],
423 "valid": true
424 },
425 {
426 "description": "all string formats ignore booleans",
427 "data": false,
428 "valid": true
429 },
430 {
431 "description": "all string formats ignore nulls",
432 "data": null,
433 "valid": true
434 },
435 {
436 "description": "invalid time string is only an annotation by default",
437 "data": "08:30:06 PST",
438 "valid": true
439 }
440 ]
441 },
442 {
443 "description": "json-pointer format",
444 "schema": {
445 "$schema": "https://json-schema.org/v1",
446 "format": "json-pointer"
447 },
448 "tests": [
449 {
450 "description": "all string formats ignore integers",
451 "data": 12,
452 "valid": true
453 },
454 {
455 "description": "all string formats ignore floats",
456 "data": 13.7,
457 "valid": true
458 },
459 {
460 "description": "all string formats ignore objects",
461 "data": {},
462 "valid": true
463 },
464 {
465 "description": "all string formats ignore arrays",
466 "data": [],
467 "valid": true
468 },
469 {
470 "description": "all string formats ignore booleans",
471 "data": false,
472 "valid": true
473 },
474 {
475 "description": "all string formats ignore nulls",
476 "data": null,
477 "valid": true
478 },
479 {
480 "description": "invalid json-pointer string is only an annotation by default",
481 "data": "/foo/bar~",
482 "valid": true
483 }
484 ]
485 },
486 {
487 "description": "relative-json-pointer format",
488 "schema": {
489 "$schema": "https://json-schema.org/v1",
490 "format": "relative-json-pointer"
491 },
492 "tests": [
493 {
494 "description": "all string formats ignore integers",
495 "data": 12,
496 "valid": true
497 },
498 {
499 "description": "all string formats ignore floats",
500 "data": 13.7,
501 "valid": true
502 },
503 {
504 "description": "all string formats ignore objects",
505 "data": {},
506 "valid": true
507 },
508 {
509 "description": "all string formats ignore arrays",
510 "data": [],
511 "valid": true
512 },
513 {
514 "description": "all string formats ignore booleans",
515 "data": false,
516 "valid": true
517 },
518 {
519 "description": "all string formats ignore nulls",
520 "data": null,
521 "valid": true
522 },
523 {
524 "description": "invalid relative-json-pointer string is only an annotation by default",
525 "data": "/foo/bar",
526 "valid": true
527 }
528 ]
529 },
530 {
531 "description": "iri format",
532 "schema": {
533 "$schema": "https://json-schema.org/v1",
534 "format": "iri"
535 },
536 "tests": [
537 {
538 "description": "all string formats ignore integers",
539 "data": 12,
540 "valid": true
541 },
542 {
543 "description": "all string formats ignore floats",
544 "data": 13.7,
545 "valid": true
546 },
547 {
548 "description": "all string formats ignore objects",
549 "data": {},
550 "valid": true
551 },
552 {
553 "description": "all string formats ignore arrays",
554 "data": [],
555 "valid": true
556 },
557 {
558 "description": "all string formats ignore booleans",
559 "data": false,
560 "valid": true
561 },
562 {
563 "description": "all string formats ignore nulls",
564 "data": null,
565 "valid": true
566 },
567 {
568 "description": "invalid iri string is only an annotation by default",
569 "data": "http://2001:0db8:85a3:0000:0000:8a2e:0370:7334",
570 "valid": true
571 }
572 ]
573 },
574 {
575 "description": "iri-reference format",
576 "schema": {
577 "$schema": "https://json-schema.org/v1",
578 "format": "iri-reference"
579 },
580 "tests": [
581 {
582 "description": "all string formats ignore integers",
583 "data": 12,
584 "valid": true
585 },
586 {
587 "description": "all string formats ignore floats",
588 "data": 13.7,
589 "valid": true
590 },
591 {
592 "description": "all string formats ignore objects",
593 "data": {},
594 "valid": true
595 },
596 {
597 "description": "all string formats ignore arrays",
598 "data": [],
599 "valid": true
600 },
601 {
602 "description": "all string formats ignore booleans",
603 "data": false,
604 "valid": true
605 },
606 {
607 "description": "all string formats ignore nulls",
608 "data": null,
609 "valid": true
610 },
611 {
612 "description": "invalid iri-reference string is only an annotation by default",
613 "data": "\\\\WINDOWS\\filëßåré",
614 "valid": true
615 }
616 ]
617 },
618 {
619 "description": "uri format",
620 "schema": {
621 "$schema": "https://json-schema.org/v1",
622 "format": "uri"
623 },
624 "tests": [
625 {
626 "description": "all string formats ignore integers",
627 "data": 12,
628 "valid": true
629 },
630 {
631 "description": "all string formats ignore floats",
632 "data": 13.7,
633 "valid": true
634 },
635 {
636 "description": "all string formats ignore objects",
637 "data": {},
638 "valid": true
639 },
640 {
641 "description": "all string formats ignore arrays",
642 "data": [],
643 "valid": true
644 },
645 {
646 "description": "all string formats ignore booleans",
647 "data": false,
648 "valid": true
649 },
650 {
651 "description": "all string formats ignore nulls",
652 "data": null,
653 "valid": true
654 },
655 {
656 "description": "invalid uri string is only an annotation by default",
657 "data": "//foo.bar/?baz=qux#quux",
658 "valid": true
659 }
660 ]
661 },
662 {
663 "description": "uri-reference format",
664 "schema": {
665 "$schema": "https://json-schema.org/v1",
666 "format": "uri-reference"
667 },
668 "tests": [
669 {
670 "description": "all string formats ignore integers",
671 "data": 12,
672 "valid": true
673 },
674 {
675 "description": "all string formats ignore floats",
676 "data": 13.7,
677 "valid": true
678 },
679 {
680 "description": "all string formats ignore objects",
681 "data": {},
682 "valid": true
683 },
684 {
685 "description": "all string formats ignore arrays",
686 "data": [],
687 "valid": true
688 },
689 {
690 "description": "all string formats ignore booleans",
691 "data": false,
692 "valid": true
693 },
694 {
695 "description": "all string formats ignore nulls",
696 "data": null,
697 "valid": true
698 },
699 {
700 "description": "invalid uri-reference string is only an annotation by default",
701 "data": "\\\\WINDOWS\\fileshare",
702 "valid": true
703 }
704 ]
705 },
706 {
707 "description": "uri-template format",
708 "schema": {
709 "$schema": "https://json-schema.org/v1",
710 "format": "uri-template"
711 },
712 "tests": [
713 {
714 "description": "all string formats ignore integers",
715 "data": 12,
716 "valid": true
717 },
718 {
719 "description": "all string formats ignore floats",
720 "data": 13.7,
721 "valid": true
722 },
723 {
724 "description": "all string formats ignore objects",
725 "data": {},
726 "valid": true
727 },
728 {
729 "description": "all string formats ignore arrays",
730 "data": [],
731 "valid": true
732 },
733 {
734 "description": "all string formats ignore booleans",
735 "data": false,
736 "valid": true
737 },
738 {
739 "description": "all string formats ignore nulls",
740 "data": null,
741 "valid": true
742 },
743 {
744 "description": "invalid uri-template string is only an annotation by default",
745 "data": "http://example.com/dictionary/{term:1}/{term",
746 "valid": true
747 }
748 ]
749 },
750 {
751 "description": "uuid format",
752 "schema": {
753 "$schema": "https://json-schema.org/v1",
754 "format": "uuid"
755 },
756 "tests": [
757 {
758 "description": "all string formats ignore integers",
759 "data": 12,
760 "valid": true
761 },
762 {
763 "description": "all string formats ignore floats",
764 "data": 13.7,
765 "valid": true
766 },
767 {
768 "description": "all string formats ignore objects",
769 "data": {},
770 "valid": true
771 },
772 {
773 "description": "all string formats ignore arrays",
774 "data": [],
775 "valid": true
776 },
777 {
778 "description": "all string formats ignore booleans",
779 "data": false,
780 "valid": true
781 },
782 {
783 "description": "all string formats ignore nulls",
784 "data": null,
785 "valid": true
786 },
787 {
788 "description": "invalid uuid string is only an annotation by default",
789 "data": "2eb8aa08-aa98-11ea-b4aa-73b441d1638",
790 "valid": true
791 }
792 ]
793 },
794 {
795 "description": "duration format",
796 "schema": {
797 "$schema": "https://json-schema.org/v1",
798 "format": "duration"
799 },
800 "tests": [
801 {
802 "description": "all string formats ignore integers",
803 "data": 12,
804 "valid": true
805 },
806 {
807 "description": "all string formats ignore floats",
808 "data": 13.7,
809 "valid": true
810 },
811 {
812 "description": "all string formats ignore objects",
813 "data": {},
814 "valid": true
815 },
816 {
817 "description": "all string formats ignore arrays",
818 "data": [],
819 "valid": true
820 },
821 {
822 "description": "all string formats ignore booleans",
823 "data": false,
824 "valid": true
825 },
826 {
827 "description": "all string formats ignore nulls",
828 "data": null,
829 "valid": true
830 },
831 {
832 "description": "invalid duration string is only an annotation by default",
833 "data": "PT1D",
834 "valid": true
835 }
836 ]
837 }
838 ]