Debian Codegraph @

spec/json-typedef-spec/tests/validation.json

raw ◀ ▶
1 Debian patch touch this file
•1 {
2 "empty schema - null": {
3 "schema": {},
4 "instance": null,
5 "errors": []
6 },
7 "empty schema - boolean": {
8 "schema": {},
9 "instance": true,
10 "errors": []
11 },
12 "empty schema - integer": {
13 "schema": {},
14 "instance": 1,
15 "errors": []
16 },
17 "empty schema - float": {
18 "schema": {},
19 "instance": 3.14,
20 "errors": []
21 },
22 "empty schema - string": {
23 "schema": {},
24 "instance": "foo",
25 "errors": []
26 },
27 "empty schema - array": {
28 "schema": {},
29 "instance": [],
30 "errors": []
31 },
32 "empty schema - object": {
33 "schema": {},
34 "instance": {},
35 "errors": []
36 },
37 "empty nullable schema - null": {
38 "schema": {
39 "nullable": true
40 },
41 "instance": null,
42 "errors": []
43 },
44 "empty nullable schema - object": {
45 "schema": {
46 "nullable": true
47 },
48 "instance": {},
49 "errors": []
50 },
51 "empty schema with metadata - null": {
52 "schema": {
53 "metadata": {}
54 },
55 "instance": null,
56 "errors": []
57 },
58 "ref schema - ref to empty definition": {
59 "schema": {
60 "definitions": {
61 "foo": {}
62 },
63 "ref": "foo"
64 },
65 "instance": true,
66 "errors": []
67 },
68 "ref schema - nested ref": {
69 "schema": {
70 "definitions": {
71 "foo": {
72 "ref": "bar"
73 },
74 "bar": {}
75 },
76 "ref": "foo"
77 },
78 "instance": true,
79 "errors": []
80 },
81 "ref schema - ref to type definition, ok": {
82 "schema": {
83 "definitions": {
84 "foo": {
85 "type": "boolean"
86 }
87 },
88 "ref": "foo"
89 },
90 "instance": true,
91 "errors": []
92 },
93 "ref schema - ref to type definition, fail": {
94 "schema": {
95 "definitions": {
96 "foo": {
97 "type": "boolean"
98 }
99 },
100 "ref": "foo"
101 },
102 "instance": {},
103 "errors": [
104 {
105 "instancePath": [],
106 "schemaPath": [
107 "definitions",
108 "foo",
109 "type"
110 ]
111 }
112 ]
113 },
114 "nullable ref schema - ref to type definition, ok": {
115 "schema": {
116 "definitions": {
117 "foo": {
118 "type": "boolean"
119 }
120 },
121 "ref": "foo",
122 "nullable": true
123 },
124 "instance": true,
125 "errors": []
126 },
127 "nullable ref schema - ref to type definition, ok because null": {
128 "schema": {
129 "definitions": {
130 "foo": {
131 "type": "boolean"
132 }
133 },
134 "ref": "foo",
135 "nullable": true
136 },
137 "instance": null,
138 "errors": []
139 },
140 "nullable ref schema - nullable: false ignored": {
141 "schema": {
142 "definitions": {
143 "foo": {
144 "type": "boolean",
145 "nullable": false
146 }
147 },
148 "ref": "foo",
149 "nullable": true
150 },
151 "instance": null,
152 "errors": []
153 },
154 "ref schema - recursive schema, ok": {
155 "schema": {
156 "definitions": {
157 "root": {
158 "elements": {
159 "ref": "root"
160 }
161 }
162 },
163 "ref": "root"
164 },
165 "instance": [],
166 "errors": []
167 },
168 "ref schema - recursive schema, bad": {
169 "schema": {
170 "definitions": {
171 "root": {
172 "elements": {
173 "ref": "root"
174 }
175 }
176 },
177 "ref": "root"
178 },
179 "instance": [
180 [],
181 [
182 []
183 ],
184 [
185 [
186 [],
187 [
188 "a"
189 ]
190 ]
191 ]
192 ],
193 "errors": [
194 {
195 "instancePath": [
196 "2",
197 "0",
198 "1",
199 "0"
200 ],
201 "schemaPath": [
202 "definitions",
203 "root",
204 "elements"
205 ]
206 }
207 ]
208 },
209 "boolean type schema - null": {
210 "schema": {
211 "type": "boolean"
212 },
213 "instance": null,
214 "errors": [
215 {
216 "instancePath": [],
217 "schemaPath": [
218 "type"
219 ]
220 }
221 ]
222 },
223 "boolean type schema - boolean": {
224 "schema": {
225 "type": "boolean"
226 },
227 "instance": true,
228 "errors": []
229 },
230 "boolean type schema - integer": {
231 "schema": {
232 "type": "boolean"
233 },
234 "instance": 1,
235 "errors": [
236 {
237 "instancePath": [],
238 "schemaPath": [
239 "type"
240 ]
241 }
242 ]
243 },
244 "boolean type schema - float": {
245 "schema": {
246 "type": "boolean"
247 },
248 "instance": 3.14,
249 "errors": [
250 {
251 "instancePath": [],
252 "schemaPath": [
253 "type"
254 ]
255 }
256 ]
257 },
258 "boolean type schema - string": {
259 "schema": {
260 "type": "boolean"
261 },
262 "instance": "foo",
263 "errors": [
264 {
265 "instancePath": [],
266 "schemaPath": [
267 "type"
268 ]
269 }
270 ]
271 },
272 "boolean type schema - array": {
273 "schema": {
274 "type": "boolean"
275 },
276 "instance": [],
277 "errors": [
278 {
279 "instancePath": [],
280 "schemaPath": [
281 "type"
282 ]
283 }
284 ]
285 },
286 "boolean type schema - object": {
287 "schema": {
288 "type": "boolean"
289 },
290 "instance": {},
291 "errors": [
292 {
293 "instancePath": [],
294 "schemaPath": [
295 "type"
296 ]
297 }
298 ]
299 },
300 "nullable boolean type schema - null": {
301 "schema": {
302 "type": "boolean",
303 "nullable": true
304 },
305 "instance": null,
306 "errors": []
307 },
308 "nullable boolean type schema - boolean": {
309 "schema": {
310 "type": "boolean",
311 "nullable": true
312 },
313 "instance": true,
314 "errors": []
315 },
316 "nullable boolean type schema - integer": {
317 "schema": {
318 "type": "boolean",
319 "nullable": true
320 },
321 "instance": 1,
322 "errors": [
323 {
324 "instancePath": [],
325 "schemaPath": [
326 "type"
327 ]
328 }
329 ]
330 },
331 "nullable boolean type schema - float": {
332 "schema": {
333 "type": "boolean",
334 "nullable": true
335 },
336 "instance": 3.14,
337 "errors": [
338 {
339 "instancePath": [],
340 "schemaPath": [
341 "type"
342 ]
343 }
344 ]
345 },
346 "nullable boolean type schema - string": {
347 "schema": {
348 "type": "boolean",
349 "nullable": true
350 },
351 "instance": "foo",
352 "errors": [
353 {
354 "instancePath": [],
355 "schemaPath": [
356 "type"
357 ]
358 }
359 ]
360 },
361 "nullable boolean type schema - array": {
362 "schema": {
363 "type": "boolean",
364 "nullable": true
365 },
366 "instance": [],
367 "errors": [
368 {
369 "instancePath": [],
370 "schemaPath": [
371 "type"
372 ]
373 }
374 ]
375 },
376 "nullable boolean type schema - object": {
377 "schema": {
378 "type": "boolean",
379 "nullable": true
380 },
381 "instance": {},
382 "errors": [
383 {
384 "instancePath": [],
385 "schemaPath": [
386 "type"
387 ]
388 }
389 ]
390 },
391 "float32 type schema - null": {
392 "schema": {
393 "type": "float32"
394 },
395 "instance": null,
396 "errors": [
397 {
398 "instancePath": [],
399 "schemaPath": [
400 "type"
401 ]
402 }
403 ]
404 },
405 "float32 type schema - boolean": {
406 "schema": {
407 "type": "float32"
408 },
409 "instance": true,
410 "errors": [
411 {
412 "instancePath": [],
413 "schemaPath": [
414 "type"
415 ]
416 }
417 ]
418 },
419 "float32 type schema - integer": {
420 "schema": {
421 "type": "float32"
422 },
423 "instance": 1,
424 "errors": []
425 },
426 "float32 type schema - float": {
427 "schema": {
428 "type": "float32"
429 },
430 "instance": 3.14,
431 "errors": []
432 },
433 "float32 type schema - string": {
434 "schema": {
435 "type": "float32"
436 },
437 "instance": "foo",
438 "errors": [
439 {
440 "instancePath": [],
441 "schemaPath": [
442 "type"
443 ]
444 }
445 ]
446 },
447 "float32 type schema - array": {
448 "schema": {
449 "type": "float32"
450 },
451 "instance": [],
452 "errors": [
453 {
454 "instancePath": [],
455 "schemaPath": [
456 "type"
457 ]
458 }
459 ]
460 },
461 "float32 type schema - object": {
462 "schema": {
463 "type": "float32"
464 },
465 "instance": {},
466 "errors": [
467 {
468 "instancePath": [],
469 "schemaPath": [
470 "type"
471 ]
472 }
473 ]
474 },
475 "nullable float32 type schema - null": {
476 "schema": {
477 "type": "float32",
478 "nullable": true
479 },
480 "instance": null,
481 "errors": []
482 },
483 "nullable float32 type schema - boolean": {
484 "schema": {
485 "type": "float32",
486 "nullable": true
487 },
488 "instance": true,
489 "errors": [
490 {
491 "instancePath": [],
492 "schemaPath": [
493 "type"
494 ]
495 }
496 ]
497 },
498 "nullable float32 type schema - integer": {
499 "schema": {
500 "type": "float32",
501 "nullable": true
502 },
503 "instance": 1,
504 "errors": []
505 },
506 "nullable float32 type schema - float": {
507 "schema": {
508 "type": "float32",
509 "nullable": true
510 },
511 "instance": 3.14,
512 "errors": []
513 },
514 "nullable float32 type schema - string": {
515 "schema": {
516 "type": "float32",
517 "nullable": true
518 },
519 "instance": "foo",
520 "errors": [
521 {
522 "instancePath": [],
523 "schemaPath": [
524 "type"
525 ]
526 }
527 ]
528 },
529 "nullable float32 type schema - array": {
530 "schema": {
531 "type": "float32",
532 "nullable": true
533 },
534 "instance": [],
535 "errors": [
536 {
537 "instancePath": [],
538 "schemaPath": [
539 "type"
540 ]
541 }
542 ]
543 },
544 "nullable float32 type schema - object": {
545 "schema": {
546 "type": "float32",
547 "nullable": true
548 },
549 "instance": {},
550 "errors": [
551 {
552 "instancePath": [],
553 "schemaPath": [
554 "type"
555 ]
556 }
557 ]
558 },
559 "float64 type schema - null": {
560 "schema": {
561 "type": "float64"
562 },
563 "instance": null,
564 "errors": [
565 {
566 "instancePath": [],
567 "schemaPath": [
568 "type"
569 ]
570 }
571 ]
572 },
573 "float64 type schema - boolean": {
574 "schema": {
575 "type": "float64"
576 },
577 "instance": true,
578 "errors": [
579 {
580 "instancePath": [],
581 "schemaPath": [
582 "type"
583 ]
584 }
585 ]
586 },
587 "float64 type schema - integer": {
588 "schema": {
589 "type": "float64"
590 },
591 "instance": 1,
592 "errors": []
593 },
594 "float64 type schema - float": {
595 "schema": {
596 "type": "float64"
597 },
598 "instance": 3.14,
599 "errors": []
600 },
601 "float64 type schema - string": {
602 "schema": {
603 "type": "float64"
604 },
605 "instance": "foo",
606 "errors": [
607 {
608 "instancePath": [],
609 "schemaPath": [
610 "type"
611 ]
612 }
613 ]
614 },
615 "float64 type schema - array": {
616 "schema": {
617 "type": "float64"
618 },
619 "instance": [],
620 "errors": [
621 {
622 "instancePath": [],
623 "schemaPath": [
624 "type"
625 ]
626 }
627 ]
628 },
629 "float64 type schema - object": {
630 "schema": {
631 "type": "float64"
632 },
633 "instance": {},
634 "errors": [
635 {
636 "instancePath": [],
637 "schemaPath": [
638 "type"
639 ]
640 }
641 ]
642 },
643 "nullable float64 type schema - null": {
644 "schema": {
645 "type": "float64",
646 "nullable": true
647 },
648 "instance": null,
649 "errors": []
650 },
651 "nullable float64 type schema - boolean": {
652 "schema": {
653 "type": "float64",
654 "nullable": true
655 },
656 "instance": true,
657 "errors": [
658 {
659 "instancePath": [],
660 "schemaPath": [
661 "type"
662 ]
663 }
664 ]
665 },
666 "nullable float64 type schema - integer": {
667 "schema": {
668 "type": "float64",
669 "nullable": true
670 },
671 "instance": 1,
672 "errors": []
673 },
674 "nullable float64 type schema - float": {
675 "schema": {
676 "type": "float64",
677 "nullable": true
678 },
679 "instance": 3.14,
680 "errors": []
681 },
682 "nullable float64 type schema - string": {
683 "schema": {
684 "type": "float64",
685 "nullable": true
686 },
687 "instance": "foo",
688 "errors": [
689 {
690 "instancePath": [],
691 "schemaPath": [
692 "type"
693 ]
694 }
695 ]
696 },
697 "nullable float64 type schema - array": {
698 "schema": {
699 "type": "float64",
700 "nullable": true
701 },
702 "instance": [],
703 "errors": [
704 {
705 "instancePath": [],
706 "schemaPath": [
707 "type"
708 ]
709 }
710 ]
711 },
712 "nullable float64 type schema - object": {
713 "schema": {
714 "type": "float64",
715 "nullable": true
716 },
717 "instance": {},
718 "errors": [
719 {
720 "instancePath": [],
721 "schemaPath": [
722 "type"
723 ]
724 }
725 ]
726 },
727 "int8 type schema - null": {
728 "schema": {
729 "type": "int8"
730 },
731 "instance": null,
732 "errors": [
733 {
734 "instancePath": [],
735 "schemaPath": [
736 "type"
737 ]
738 }
739 ]
740 },
741 "int8 type schema - boolean": {
742 "schema": {
743 "type": "int8"
744 },
745 "instance": true,
746 "errors": [
747 {
748 "instancePath": [],
749 "schemaPath": [
750 "type"
751 ]
752 }
753 ]
754 },
755 "int8 type schema - integer": {
756 "schema": {
757 "type": "int8"
758 },
759 "instance": 1,
760 "errors": []
761 },
762 "int8 type schema - float": {
763 "schema": {
764 "type": "int8"
765 },
766 "instance": 3.14,
767 "errors": [
768 {
769 "instancePath": [],
770 "schemaPath": [
771 "type"
772 ]
773 }
774 ]
775 },
776 "int8 type schema - string": {
777 "schema": {
778 "type": "int8"
779 },
780 "instance": "foo",
781 "errors": [
782 {
783 "instancePath": [],
784 "schemaPath": [
785 "type"
786 ]
787 }
788 ]
789 },
790 "int8 type schema - array": {
791 "schema": {
792 "type": "int8"
793 },
794 "instance": [],
795 "errors": [
796 {
797 "instancePath": [],
798 "schemaPath": [
799 "type"
800 ]
801 }
802 ]
803 },
804 "int8 type schema - object": {
805 "schema": {
806 "type": "int8"
807 },
808 "instance": {},
809 "errors": [
810 {
811 "instancePath": [],
812 "schemaPath": [
813 "type"
814 ]
815 }
816 ]
817 },
818 "nullable int8 type schema - null": {
819 "schema": {
820 "type": "int8",
821 "nullable": true
822 },
823 "instance": null,
824 "errors": []
825 },
826 "nullable int8 type schema - boolean": {
827 "schema": {
828 "type": "int8",
829 "nullable": true
830 },
831 "instance": true,
832 "errors": [
833 {
834 "instancePath": [],
835 "schemaPath": [
836 "type"
837 ]
838 }
839 ]
840 },
841 "nullable int8 type schema - integer": {
842 "schema": {
843 "type": "int8",
844 "nullable": true
845 },
846 "instance": 1,
847 "errors": []
848 },
849 "nullable int8 type schema - float": {
850 "schema": {
851 "type": "int8",
852 "nullable": true
853 },
854 "instance": 3.14,
855 "errors": [
856 {
857 "instancePath": [],
858 "schemaPath": [
859 "type"
860 ]
861 }
862 ]
863 },
864 "nullable int8 type schema - string": {
865 "schema": {
866 "type": "int8",
867 "nullable": true
868 },
869 "instance": "foo",
870 "errors": [
871 {
872 "instancePath": [],
873 "schemaPath": [
874 "type"
875 ]
876 }
877 ]
878 },
879 "nullable int8 type schema - array": {
880 "schema": {
881 "type": "int8",
882 "nullable": true
883 },
884 "instance": [],
885 "errors": [
886 {
887 "instancePath": [],
888 "schemaPath": [
889 "type"
890 ]
891 }
892 ]
893 },
894 "nullable int8 type schema - object": {
895 "schema": {
896 "type": "int8",
897 "nullable": true
898 },
899 "instance": {},
900 "errors": [
901 {
902 "instancePath": [],
903 "schemaPath": [
904 "type"
905 ]
906 }
907 ]
908 },
909 "int8 type schema - min value": {
910 "schema": {
911 "type": "int8"
912 },
913 "instance": -128,
914 "errors": []
915 },
916 "int8 type schema - max value": {
917 "schema": {
918 "type": "int8"
919 },
920 "instance": 127,
921 "errors": []
922 },
923 "int8 type schema - less than min": {
924 "schema": {
925 "type": "int8"
926 },
927 "instance": -129,
928 "errors": [
929 {
930 "instancePath": [],
931 "schemaPath": [
932 "type"
933 ]
934 }
935 ]
936 },
937 "int8 type schema - more than max": {
938 "schema": {
939 "type": "int8"
940 },
941 "instance": 128,
942 "errors": [
943 {
944 "instancePath": [],
945 "schemaPath": [
946 "type"
947 ]
948 }
949 ]
950 },
951 "uint8 type schema - null": {
952 "schema": {
953 "type": "uint8"
954 },
955 "instance": null,
956 "errors": [
957 {
958 "instancePath": [],
959 "schemaPath": [
960 "type"
961 ]
962 }
963 ]
964 },
965 "uint8 type schema - boolean": {
966 "schema": {
967 "type": "uint8"
968 },
969 "instance": true,
970 "errors": [
971 {
972 "instancePath": [],
973 "schemaPath": [
974 "type"
975 ]
976 }
977 ]
978 },
979 "uint8 type schema - integer": {
980 "schema": {
981 "type": "uint8"
982 },
983 "instance": 1,
984 "errors": []
985 },
986 "uint8 type schema - float": {
987 "schema": {
988 "type": "uint8"
989 },
990 "instance": 3.14,
991 "errors": [
992 {
993 "instancePath": [],
994 "schemaPath": [
995 "type"
996 ]
997 }
998 ]
999 },
1000 "uint8 type schema - string": {
1001 "schema": {
1002 "type": "uint8"
1003 },
1004 "instance": "foo",
1005 "errors": [
1006 {
1007 "instancePath": [],
1008 "schemaPath": [
1009 "type"
1010 ]
1011 }
1012 ]
1013 },
1014 "uint8 type schema - array": {
1015 "schema": {
1016 "type": "uint8"
1017 },
1018 "instance": [],
1019 "errors": [
1020 {
1021 "instancePath": [],
1022 "schemaPath": [
1023 "type"
1024 ]
1025 }
1026 ]
1027 },
1028 "uint8 type schema - object": {
1029 "schema": {
1030 "type": "uint8"
1031 },
1032 "instance": {},
1033 "errors": [
1034 {
1035 "instancePath": [],
1036 "schemaPath": [
1037 "type"
1038 ]
1039 }
1040 ]
1041 },
1042 "nullable uint8 type schema - null": {
1043 "schema": {
1044 "type": "uint8",
1045 "nullable": true
1046 },
1047 "instance": null,
1048 "errors": []
1049 },
1050 "nullable uint8 type schema - boolean": {
1051 "schema": {
1052 "type": "uint8",
1053 "nullable": true
1054 },
1055 "instance": true,
1056 "errors": [
1057 {
1058 "instancePath": [],
1059 "schemaPath": [
1060 "type"
1061 ]
1062 }
1063 ]
1064 },
1065 "nullable uint8 type schema - integer": {
1066 "schema": {
1067 "type": "uint8",
1068 "nullable": true
1069 },
1070 "instance": 1,
1071 "errors": []
1072 },
1073 "nullable uint8 type schema - float": {
1074 "schema": {
1075 "type": "uint8",
1076 "nullable": true
1077 },
1078 "instance": 3.14,
1079 "errors": [
1080 {
1081 "instancePath": [],
1082 "schemaPath": [
1083 "type"
1084 ]
1085 }
1086 ]
1087 },
1088 "nullable uint8 type schema - string": {
1089 "schema": {
1090 "type": "uint8",
1091 "nullable": true
1092 },
1093 "instance": "foo",
1094 "errors": [
1095 {
1096 "instancePath": [],
1097 "schemaPath": [
1098 "type"
1099 ]
1100 }
1101 ]
1102 },
1103 "nullable uint8 type schema - array": {
1104 "schema": {
1105 "type": "uint8",
1106 "nullable": true
1107 },
1108 "instance": [],
1109 "errors": [
1110 {
1111 "instancePath": [],
1112 "schemaPath": [
1113 "type"
1114 ]
1115 }
1116 ]
1117 },
1118 "nullable uint8 type schema - object": {
1119 "schema": {
1120 "type": "uint8",
1121 "nullable": true
1122 },
1123 "instance": {},
1124 "errors": [
1125 {
1126 "instancePath": [],
1127 "schemaPath": [
1128 "type"
1129 ]
1130 }
1131 ]
1132 },
1133 "uint8 type schema - min value": {
1134 "schema": {
1135 "type": "uint8"
1136 },
1137 "instance": 0,
1138 "errors": []
1139 },
1140 "uint8 type schema - max value": {
1141 "schema": {
1142 "type": "uint8"
1143 },
1144 "instance": 255,
1145 "errors": []
1146 },
1147 "uint8 type schema - less than min": {
1148 "schema": {
1149 "type": "uint8"
1150 },
1151 "instance": -1,
1152 "errors": [
1153 {
1154 "instancePath": [],
1155 "schemaPath": [
1156 "type"
1157 ]
1158 }
1159 ]
1160 },
1161 "uint8 type schema - more than max": {
1162 "schema": {
1163 "type": "uint8"
1164 },
1165 "instance": 256,
1166 "errors": [
1167 {
1168 "instancePath": [],
1169 "schemaPath": [
1170 "type"
1171 ]
1172 }
1173 ]
1174 },
1175 "int16 type schema - null": {
1176 "schema": {
1177 "type": "int16"
1178 },
1179 "instance": null,
1180 "errors": [
1181 {
1182 "instancePath": [],
1183 "schemaPath": [
1184 "type"
1185 ]
1186 }
1187 ]
1188 },
1189 "int16 type schema - boolean": {
1190 "schema": {
1191 "type": "int16"
1192 },
1193 "instance": true,
1194 "errors": [
1195 {
1196 "instancePath": [],
1197 "schemaPath": [
1198 "type"
1199 ]
1200 }
1201 ]
1202 },
1203 "int16 type schema - integer": {
1204 "schema": {
1205 "type": "int16"
1206 },
1207 "instance": 1,
1208 "errors": []
1209 },
1210 "int16 type schema - float": {
1211 "schema": {
1212 "type": "int16"
1213 },
1214 "instance": 3.14,
1215 "errors": [
1216 {
1217 "instancePath": [],
1218 "schemaPath": [
1219 "type"
1220 ]
1221 }
1222 ]
1223 },
1224 "int16 type schema - string": {
1225 "schema": {
1226 "type": "int16"
1227 },
1228 "instance": "foo",
1229 "errors": [
1230 {
1231 "instancePath": [],
1232 "schemaPath": [
1233 "type"
1234 ]
1235 }
1236 ]
1237 },
1238 "int16 type schema - array": {
1239 "schema": {
1240 "type": "int16"
1241 },
1242 "instance": [],
1243 "errors": [
1244 {
1245 "instancePath": [],
1246 "schemaPath": [
1247 "type"
1248 ]
1249 }
1250 ]
1251 },
1252 "int16 type schema - object": {
1253 "schema": {
1254 "type": "int16"
1255 },
1256 "instance": {},
1257 "errors": [
1258 {
1259 "instancePath": [],
1260 "schemaPath": [
1261 "type"
1262 ]
1263 }
1264 ]
1265 },
1266 "nullable int16 type schema - null": {
1267 "schema": {
1268 "type": "int16",
1269 "nullable": true
1270 },
1271 "instance": null,
1272 "errors": []
1273 },
1274 "nullable int16 type schema - boolean": {
1275 "schema": {
1276 "type": "int16",
1277 "nullable": true
1278 },
1279 "instance": true,
1280 "errors": [
1281 {
1282 "instancePath": [],
1283 "schemaPath": [
1284 "type"
1285 ]
1286 }
1287 ]
1288 },
1289 "nullable int16 type schema - integer": {
1290 "schema": {
1291 "type": "int16",
1292 "nullable": true
1293 },
1294 "instance": 1,
1295 "errors": []
1296 },
1297 "nullable int16 type schema - float": {
1298 "schema": {
1299 "type": "int16",
1300 "nullable": true
1301 },
1302 "instance": 3.14,
1303 "errors": [
1304 {
1305 "instancePath": [],
1306 "schemaPath": [
1307 "type"
1308 ]
1309 }
1310 ]
1311 },
1312 "nullable int16 type schema - string": {
1313 "schema": {
1314 "type": "int16",
1315 "nullable": true
1316 },
1317 "instance": "foo",
1318 "errors": [
1319 {
1320 "instancePath": [],
1321 "schemaPath": [
1322 "type"
1323 ]
1324 }
1325 ]
1326 },
1327 "nullable int16 type schema - array": {
1328 "schema": {
1329 "type": "int16",
1330 "nullable": true
1331 },
1332 "instance": [],
1333 "errors": [
1334 {
1335 "instancePath": [],
1336 "schemaPath": [
1337 "type"
1338 ]
1339 }
1340 ]
1341 },
1342 "nullable int16 type schema - object": {
1343 "schema": {
1344 "type": "int16",
1345 "nullable": true
1346 },
1347 "instance": {},
1348 "errors": [
1349 {
1350 "instancePath": [],
1351 "schemaPath": [
1352 "type"
1353 ]
1354 }
1355 ]
1356 },
1357 "int16 type schema - min value": {
1358 "schema": {
1359 "type": "int16"
1360 },
1361 "instance": -32768,
1362 "errors": []
1363 },
1364 "int16 type schema - max value": {
1365 "schema": {
1366 "type": "int16"
1367 },
1368 "instance": 32767,
1369 "errors": []
1370 },
1371 "int16 type schema - less than min": {
1372 "schema": {
1373 "type": "int16"
1374 },
1375 "instance": -32769,
1376 "errors": [
1377 {
1378 "instancePath": [],
1379 "schemaPath": [
1380 "type"
1381 ]
1382 }
1383 ]
1384 },
1385 "int16 type schema - more than max": {
1386 "schema": {
1387 "type": "int16"
1388 },
1389 "instance": 32768,
1390 "errors": [
1391 {
1392 "instancePath": [],
1393 "schemaPath": [
1394 "type"
1395 ]
1396 }
1397 ]
1398 },
1399 "uint16 type schema - null": {
1400 "schema": {
1401 "type": "uint16"
1402 },
1403 "instance": null,
1404 "errors": [
1405 {
1406 "instancePath": [],
1407 "schemaPath": [
1408 "type"
1409 ]
1410 }
1411 ]
1412 },
1413 "uint16 type schema - boolean": {
1414 "schema": {
1415 "type": "uint16"
1416 },
1417 "instance": true,
1418 "errors": [
1419 {
1420 "instancePath": [],
1421 "schemaPath": [
1422 "type"
1423 ]
1424 }
1425 ]
1426 },
1427 "uint16 type schema - integer": {
1428 "schema": {
1429 "type": "uint16"
1430 },
1431 "instance": 1,
1432 "errors": []
1433 },
1434 "uint16 type schema - float": {
1435 "schema": {
1436 "type": "uint16"
1437 },
1438 "instance": 3.14,
1439 "errors": [
1440 {
1441 "instancePath": [],
1442 "schemaPath": [
1443 "type"
1444 ]
1445 }
1446 ]
1447 },
1448 "uint16 type schema - string": {
1449 "schema": {
1450 "type": "uint16"
1451 },
1452 "instance": "foo",
1453 "errors": [
1454 {
1455 "instancePath": [],
1456 "schemaPath": [
1457 "type"
1458 ]
1459 }
1460 ]
1461 },
1462 "uint16 type schema - array": {
1463 "schema": {
1464 "type": "uint16"
1465 },
1466 "instance": [],
1467 "errors": [
1468 {
1469 "instancePath": [],
1470 "schemaPath": [
1471 "type"
1472 ]
1473 }
1474 ]
1475 },
1476 "uint16 type schema - object": {
1477 "schema": {
1478 "type": "uint16"
1479 },
1480 "instance": {},
1481 "errors": [
1482 {
1483 "instancePath": [],
1484 "schemaPath": [
1485 "type"
1486 ]
1487 }
1488 ]
1489 },
1490 "nullable uint16 type schema - null": {
1491 "schema": {
1492 "type": "uint16",
1493 "nullable": true
1494 },
1495 "instance": null,
1496 "errors": []
1497 },
1498 "nullable uint16 type schema - boolean": {
1499 "schema": {
1500 "type": "uint16",
1501 "nullable": true
1502 },
1503 "instance": true,
1504 "errors": [
1505 {
1506 "instancePath": [],
1507 "schemaPath": [
1508 "type"
1509 ]
1510 }
1511 ]
1512 },
1513 "nullable uint16 type schema - integer": {
1514 "schema": {
1515 "type": "uint16",
1516 "nullable": true
1517 },
1518 "instance": 1,
1519 "errors": []
1520 },
1521 "nullable uint16 type schema - float": {
1522 "schema": {
1523 "type": "uint16",
1524 "nullable": true
1525 },
1526 "instance": 3.14,
1527 "errors": [
1528 {
1529 "instancePath": [],
1530 "schemaPath": [
1531 "type"
1532 ]
1533 }
1534 ]
1535 },
1536 "nullable uint16 type schema - string": {
1537 "schema": {
1538 "type": "uint16",
1539 "nullable": true
1540 },
1541 "instance": "foo",
1542 "errors": [
1543 {
1544 "instancePath": [],
1545 "schemaPath": [
1546 "type"
1547 ]
1548 }
1549 ]
1550 },
1551 "nullable uint16 type schema - array": {
1552 "schema": {
1553 "type": "uint16",
1554 "nullable": true
1555 },
1556 "instance": [],
1557 "errors": [
1558 {
1559 "instancePath": [],
1560 "schemaPath": [
1561 "type"
1562 ]
1563 }
1564 ]
1565 },
1566 "nullable uint16 type schema - object": {
1567 "schema": {
1568 "type": "uint16",
1569 "nullable": true
1570 },
1571 "instance": {},
1572 "errors": [
1573 {
1574 "instancePath": [],
1575 "schemaPath": [
1576 "type"
1577 ]
1578 }
1579 ]
1580 },
1581 "uint16 type schema - min value": {
1582 "schema": {
1583 "type": "uint16"
1584 },
1585 "instance": 0,
1586 "errors": []
1587 },
1588 "uint16 type schema - max value": {
1589 "schema": {
1590 "type": "uint16"
1591 },
1592 "instance": 65535,
1593 "errors": []
1594 },
1595 "uint16 type schema - less than min": {
1596 "schema": {
1597 "type": "uint16"
1598 },
1599 "instance": -1,
1600 "errors": [
1601 {
1602 "instancePath": [],
1603 "schemaPath": [
1604 "type"
1605 ]
1606 }
1607 ]
1608 },
1609 "uint16 type schema - more than max": {
1610 "schema": {
1611 "type": "uint16"
1612 },
1613 "instance": 65536,
1614 "errors": [
1615 {
1616 "instancePath": [],
1617 "schemaPath": [
1618 "type"
1619 ]
1620 }
1621 ]
1622 },
1623 "int32 type schema - null": {
1624 "schema": {
1625 "type": "int32"
1626 },
1627 "instance": null,
1628 "errors": [
1629 {
1630 "instancePath": [],
1631 "schemaPath": [
1632 "type"
1633 ]
1634 }
1635 ]
1636 },
1637 "int32 type schema - boolean": {
1638 "schema": {
1639 "type": "int32"
1640 },
1641 "instance": true,
1642 "errors": [
1643 {
1644 "instancePath": [],
1645 "schemaPath": [
1646 "type"
1647 ]
1648 }
1649 ]
1650 },
1651 "int32 type schema - integer": {
1652 "schema": {
1653 "type": "int32"
1654 },
1655 "instance": 1,
1656 "errors": []
1657 },
1658 "int32 type schema - float": {
1659 "schema": {
1660 "type": "int32"
1661 },
1662 "instance": 3.14,
1663 "errors": [
1664 {
1665 "instancePath": [],
1666 "schemaPath": [
1667 "type"
1668 ]
1669 }
1670 ]
1671 },
1672 "int32 type schema - string": {
1673 "schema": {
1674 "type": "int32"
1675 },
1676 "instance": "foo",
1677 "errors": [
1678 {
1679 "instancePath": [],
1680 "schemaPath": [
1681 "type"
1682 ]
1683 }
1684 ]
1685 },
1686 "int32 type schema - array": {
1687 "schema": {
1688 "type": "int32"
1689 },
1690 "instance": [],
1691 "errors": [
1692 {
1693 "instancePath": [],
1694 "schemaPath": [
1695 "type"
1696 ]
1697 }
1698 ]
1699 },
1700 "int32 type schema - object": {
1701 "schema": {
1702 "type": "int32"
1703 },
1704 "instance": {},
1705 "errors": [
1706 {
1707 "instancePath": [],
1708 "schemaPath": [
1709 "type"
1710 ]
1711 }
1712 ]
1713 },
1714 "nullable int32 type schema - null": {
1715 "schema": {
1716 "type": "int32",
1717 "nullable": true
1718 },
1719 "instance": null,
1720 "errors": []
1721 },
1722 "nullable int32 type schema - boolean": {
1723 "schema": {
1724 "type": "int32",
1725 "nullable": true
1726 },
1727 "instance": true,
1728 "errors": [
1729 {
1730 "instancePath": [],
1731 "schemaPath": [
1732 "type"
1733 ]
1734 }
1735 ]
1736 },
1737 "nullable int32 type schema - integer": {
1738 "schema": {
1739 "type": "int32",
1740 "nullable": true
1741 },
1742 "instance": 1,
1743 "errors": []
1744 },
1745 "nullable int32 type schema - float": {
1746 "schema": {
1747 "type": "int32",
1748 "nullable": true
1749 },
1750 "instance": 3.14,
1751 "errors": [
1752 {
1753 "instancePath": [],
1754 "schemaPath": [
1755 "type"
1756 ]
1757 }
1758 ]
1759 },
1760 "nullable int32 type schema - string": {
1761 "schema": {
1762 "type": "int32",
1763 "nullable": true
1764 },
1765 "instance": "foo",
1766 "errors": [
1767 {
1768 "instancePath": [],
1769 "schemaPath": [
1770 "type"
1771 ]
1772 }
1773 ]
1774 },
1775 "nullable int32 type schema - array": {
1776 "schema": {
1777 "type": "int32",
1778 "nullable": true
1779 },
1780 "instance": [],
1781 "errors": [
1782 {
1783 "instancePath": [],
1784 "schemaPath": [
1785 "type"
1786 ]
1787 }
1788 ]
1789 },
1790 "nullable int32 type schema - object": {
1791 "schema": {
1792 "type": "int32",
1793 "nullable": true
1794 },
1795 "instance": {},
1796 "errors": [
1797 {
1798 "instancePath": [],
1799 "schemaPath": [
1800 "type"
1801 ]
1802 }
1803 ]
1804 },
1805 "int32 type schema - min value": {
1806 "schema": {
1807 "type": "int32"
1808 },
1809 "instance": -2147483648,
1810 "errors": []
1811 },
1812 "int32 type schema - max value": {
1813 "schema": {
1814 "type": "int32"
1815 },
1816 "instance": 2147483647,
1817 "errors": []
1818 },
1819 "int32 type schema - less than min": {
1820 "schema": {
1821 "type": "int32"
1822 },
1823 "instance": -2147483649,
1824 "errors": [
1825 {
1826 "instancePath": [],
1827 "schemaPath": [
1828 "type"
1829 ]
1830 }
1831 ]
1832 },
1833 "int32 type schema - more than max": {
1834 "schema": {
1835 "type": "int32"
1836 },
1837 "instance": 2147483648,
1838 "errors": [
1839 {
1840 "instancePath": [],
1841 "schemaPath": [
1842 "type"
1843 ]
1844 }
1845 ]
1846 },
1847 "uint32 type schema - null": {
1848 "schema": {
1849 "type": "uint32"
1850 },
1851 "instance": null,
1852 "errors": [
1853 {
1854 "instancePath": [],
1855 "schemaPath": [
1856 "type"
1857 ]
1858 }
1859 ]
1860 },
1861 "uint32 type schema - boolean": {
1862 "schema": {
1863 "type": "uint32"
1864 },
1865 "instance": true,
1866 "errors": [
1867 {
1868 "instancePath": [],
1869 "schemaPath": [
1870 "type"
1871 ]
1872 }
1873 ]
1874 },
1875 "uint32 type schema - integer": {
1876 "schema": {
1877 "type": "uint32"
1878 },
1879 "instance": 1,
1880 "errors": []
1881 },
1882 "uint32 type schema - float": {
1883 "schema": {
1884 "type": "uint32"
1885 },
1886 "instance": 3.14,
1887 "errors": [
1888 {
1889 "instancePath": [],
1890 "schemaPath": [
1891 "type"
1892 ]
1893 }
1894 ]
1895 },
1896 "uint32 type schema - string": {
1897 "schema": {
1898 "type": "uint32"
1899 },
1900 "instance": "foo",
1901 "errors": [
1902 {
1903 "instancePath": [],
1904 "schemaPath": [
1905 "type"
1906 ]
1907 }
1908 ]
1909 },
1910 "uint32 type schema - array": {
1911 "schema": {
1912 "type": "uint32"
1913 },
1914 "instance": [],
1915 "errors": [
1916 {
1917 "instancePath": [],
1918 "schemaPath": [
1919 "type"
1920 ]
1921 }
1922 ]
1923 },
1924 "uint32 type schema - object": {
1925 "schema": {
1926 "type": "uint32"
1927 },
1928 "instance": {},
1929 "errors": [
1930 {
1931 "instancePath": [],
1932 "schemaPath": [
1933 "type"
1934 ]
1935 }
1936 ]
1937 },
1938 "nullable uint32 type schema - null": {
1939 "schema": {
1940 "type": "uint32",
1941 "nullable": true
1942 },
1943 "instance": null,
1944 "errors": []
1945 },
1946 "nullable uint32 type schema - boolean": {
1947 "schema": {
1948 "type": "uint32",
1949 "nullable": true
1950 },
1951 "instance": true,
1952 "errors": [
1953 {
1954 "instancePath": [],
1955 "schemaPath": [
1956 "type"
1957 ]
1958 }
1959 ]
1960 },
1961 "nullable uint32 type schema - integer": {
1962 "schema": {
1963 "type": "uint32",
1964 "nullable": true
1965 },
1966 "instance": 1,
1967 "errors": []
1968 },
1969 "nullable uint32 type schema - float": {
1970 "schema": {
1971 "type": "uint32",
1972 "nullable": true
1973 },
1974 "instance": 3.14,
1975 "errors": [
1976 {
1977 "instancePath": [],
1978 "schemaPath": [
1979 "type"
1980 ]
1981 }
1982 ]
1983 },
1984 "nullable uint32 type schema - string": {
1985 "schema": {
1986 "type": "uint32",
1987 "nullable": true
1988 },
1989 "instance": "foo",
1990 "errors": [
1991 {
1992 "instancePath": [],
1993 "schemaPath": [
1994 "type"
1995 ]
1996 }
1997 ]
1998 },
1999 "nullable uint32 type schema - array": {
2000 "schema": {
2001 "type": "uint32",
2002 "nullable": true
2003 },
2004 "instance": [],
2005 "errors": [
2006 {
2007 "instancePath": [],
2008 "schemaPath": [
2009 "type"
2010 ]
2011 }
2012 ]
2013 },
2014 "nullable uint32 type schema - object": {
2015 "schema": {
2016 "type": "uint32",
2017 "nullable": true
2018 },
2019 "instance": {},
2020 "errors": [
2021 {
2022 "instancePath": [],
2023 "schemaPath": [
2024 "type"
2025 ]
2026 }
2027 ]
2028 },
2029 "uint32 type schema - min value": {
2030 "schema": {
2031 "type": "uint32"
2032 },
2033 "instance": 0,
2034 "errors": []
2035 },
2036 "uint32 type schema - max value": {
2037 "schema": {
2038 "type": "uint32"
2039 },
2040 "instance": 4294967295,
2041 "errors": []
2042 },
2043 "uint32 type schema - less than min": {
2044 "schema": {
2045 "type": "uint32"
2046 },
2047 "instance": -1,
2048 "errors": [
2049 {
2050 "instancePath": [],
2051 "schemaPath": [
2052 "type"
2053 ]
2054 }
2055 ]
2056 },
2057 "uint32 type schema - more than max": {
2058 "schema": {
2059 "type": "uint32"
2060 },
2061 "instance": 4294967296,
2062 "errors": [
2063 {
2064 "instancePath": [],
2065 "schemaPath": [
2066 "type"
2067 ]
2068 }
2069 ]
2070 },
2071 "string type schema - null": {
2072 "schema": {
2073 "type": "string"
2074 },
2075 "instance": null,
2076 "errors": [
2077 {
2078 "instancePath": [],
2079 "schemaPath": [
2080 "type"
2081 ]
2082 }
2083 ]
2084 },
2085 "string type schema - boolean": {
2086 "schema": {
2087 "type": "string"
2088 },
2089 "instance": true,
2090 "errors": [
2091 {
2092 "instancePath": [],
2093 "schemaPath": [
2094 "type"
2095 ]
2096 }
2097 ]
2098 },
2099 "string type schema - integer": {
2100 "schema": {
2101 "type": "string"
2102 },
2103 "instance": 1,
2104 "errors": [
2105 {
2106 "instancePath": [],
2107 "schemaPath": [
2108 "type"
2109 ]
2110 }
2111 ]
2112 },
2113 "string type schema - float": {
2114 "schema": {
2115 "type": "string"
2116 },
2117 "instance": 3.14,
2118 "errors": [
2119 {
2120 "instancePath": [],
2121 "schemaPath": [
2122 "type"
2123 ]
2124 }
2125 ]
2126 },
2127 "string type schema - string": {
2128 "schema": {
2129 "type": "string"
2130 },
2131 "instance": "foo",
2132 "errors": []
2133 },
2134 "string type schema - array": {
2135 "schema": {
2136 "type": "string"
2137 },
2138 "instance": [],
2139 "errors": [
2140 {
2141 "instancePath": [],
2142 "schemaPath": [
2143 "type"
2144 ]
2145 }
2146 ]
2147 },
2148 "string type schema - object": {
2149 "schema": {
2150 "type": "string"
2151 },
2152 "instance": {},
2153 "errors": [
2154 {
2155 "instancePath": [],
2156 "schemaPath": [
2157 "type"
2158 ]
2159 }
2160 ]
2161 },
2162 "nullable string type schema - null": {
2163 "schema": {
2164 "type": "string",
2165 "nullable": true
2166 },
2167 "instance": null,
2168 "errors": []
2169 },
2170 "nullable string type schema - boolean": {
2171 "schema": {
2172 "type": "string",
2173 "nullable": true
2174 },
2175 "instance": true,
2176 "errors": [
2177 {
2178 "instancePath": [],
2179 "schemaPath": [
2180 "type"
2181 ]
2182 }
2183 ]
2184 },
2185 "nullable string type schema - integer": {
2186 "schema": {
2187 "type": "string",
2188 "nullable": true
2189 },
2190 "instance": 1,
2191 "errors": [
2192 {
2193 "instancePath": [],
2194 "schemaPath": [
2195 "type"
2196 ]
2197 }
2198 ]
2199 },
2200 "nullable string type schema - float": {
2201 "schema": {
2202 "type": "string",
2203 "nullable": true
2204 },
2205 "instance": 3.14,
2206 "errors": [
2207 {
2208 "instancePath": [],
2209 "schemaPath": [
2210 "type"
2211 ]
2212 }
2213 ]
2214 },
2215 "nullable string type schema - string": {
2216 "schema": {
2217 "type": "string",
2218 "nullable": true
2219 },
2220 "instance": "foo",
2221 "errors": []
2222 },
2223 "nullable string type schema - array": {
2224 "schema": {
2225 "type": "string",
2226 "nullable": true
2227 },
2228 "instance": [],
2229 "errors": [
2230 {
2231 "instancePath": [],
2232 "schemaPath": [
2233 "type"
2234 ]
2235 }
2236 ]
2237 },
2238 "nullable string type schema - object": {
2239 "schema": {
2240 "type": "string",
2241 "nullable": true
2242 },
2243 "instance": {},
2244 "errors": [
2245 {
2246 "instancePath": [],
2247 "schemaPath": [
2248 "type"
2249 ]
2250 }
2251 ]
2252 },
2253 "timestamp type schema - null": {
2254 "schema": {
2255 "type": "timestamp"
2256 },
2257 "instance": null,
2258 "errors": [
2259 {
2260 "instancePath": [],
2261 "schemaPath": [
2262 "type"
2263 ]
2264 }
2265 ]
2266 },
2267 "timestamp type schema - boolean": {
2268 "schema": {
2269 "type": "timestamp"
2270 },
2271 "instance": true,
2272 "errors": [
2273 {
2274 "instancePath": [],
2275 "schemaPath": [
2276 "type"
2277 ]
2278 }
2279 ]
2280 },
2281 "timestamp type schema - integer": {
2282 "schema": {
2283 "type": "timestamp"
2284 },
2285 "instance": 1,
2286 "errors": [
2287 {
2288 "instancePath": [],
2289 "schemaPath": [
2290 "type"
2291 ]
2292 }
2293 ]
2294 },
2295 "timestamp type schema - float": {
2296 "schema": {
2297 "type": "timestamp"
2298 },
2299 "instance": 3.14,
2300 "errors": [
2301 {
2302 "instancePath": [],
2303 "schemaPath": [
2304 "type"
2305 ]
2306 }
2307 ]
2308 },
2309 "timestamp type schema - string": {
2310 "schema": {
2311 "type": "timestamp"
2312 },
2313 "instance": "foo",
2314 "errors": [
2315 {
2316 "instancePath": [],
2317 "schemaPath": [
2318 "type"
2319 ]
2320 }
2321 ]
2322 },
2323 "timestamp type schema - array": {
2324 "schema": {
2325 "type": "timestamp"
2326 },
2327 "instance": [],
2328 "errors": [
2329 {
2330 "instancePath": [],
2331 "schemaPath": [
2332 "type"
2333 ]
2334 }
2335 ]
2336 },
2337 "timestamp type schema - object": {
2338 "schema": {
2339 "type": "timestamp"
2340 },
2341 "instance": {},
2342 "errors": [
2343 {
2344 "instancePath": [],
2345 "schemaPath": [
2346 "type"
2347 ]
2348 }
2349 ]
2350 },
2351 "nullable timestamp type schema - null": {
2352 "schema": {
2353 "type": "timestamp",
2354 "nullable": true
2355 },
2356 "instance": null,
2357 "errors": []
2358 },
2359 "nullable timestamp type schema - boolean": {
2360 "schema": {
2361 "type": "timestamp",
2362 "nullable": true
2363 },
2364 "instance": true,
2365 "errors": [
2366 {
2367 "instancePath": [],
2368 "schemaPath": [
2369 "type"
2370 ]
2371 }
2372 ]
2373 },
2374 "nullable timestamp type schema - integer": {
2375 "schema": {
2376 "type": "timestamp",
2377 "nullable": true
2378 },
2379 "instance": 1,
2380 "errors": [
2381 {
2382 "instancePath": [],
2383 "schemaPath": [
2384 "type"
2385 ]
2386 }
2387 ]
2388 },
2389 "nullable timestamp type schema - float": {
2390 "schema": {
2391 "type": "timestamp",
2392 "nullable": true
2393 },
2394 "instance": 3.14,
2395 "errors": [
2396 {
2397 "instancePath": [],
2398 "schemaPath": [
2399 "type"
2400 ]
2401 }
2402 ]
2403 },
2404 "nullable timestamp type schema - string": {
2405 "schema": {
2406 "type": "timestamp",
2407 "nullable": true
2408 },
2409 "instance": "foo",
2410 "errors": [
2411 {
2412 "instancePath": [],
2413 "schemaPath": [
2414 "type"
2415 ]
2416 }
2417 ]
2418 },
2419 "nullable timestamp type schema - array": {
2420 "schema": {
2421 "type": "timestamp",
2422 "nullable": true
2423 },
2424 "instance": [],
2425 "errors": [
2426 {
2427 "instancePath": [],
2428 "schemaPath": [
2429 "type"
2430 ]
2431 }
2432 ]
2433 },
2434 "nullable timestamp type schema - object": {
2435 "schema": {
2436 "type": "timestamp",
2437 "nullable": true
2438 },
2439 "instance": {},
2440 "errors": [
2441 {
2442 "instancePath": [],
2443 "schemaPath": [
2444 "type"
2445 ]
2446 }
2447 ]
2448 },
2449 "timestamp type schema - 1985-04-12T23:20:50.52Z": {
2450 "schema": {
2451 "type": "timestamp"
2452 },
2453 "instance": "1985-04-12T23:20:50.52Z",
2454 "errors": []
2455 },
2456 "timestamp type schema - 1996-12-19T16:39:57-08:00": {
2457 "schema": {
2458 "type": "timestamp"
2459 },
2460 "instance": "1996-12-19T16:39:57-08:00",
2461 "errors": []
2462 },
2463 "timestamp type schema - 1990-12-31T23:59:60Z": {
2464 "schema": {
2465 "type": "timestamp"
2466 },
2467 "instance": "1990-12-31T23:59:60Z",
2468 "errors": []
2469 },
2470 "timestamp type schema - 1990-12-31T15:59:60-08:00": {
2471 "schema": {
2472 "type": "timestamp"
2473 },
2474 "instance": "1990-12-31T15:59:60-08:00",
2475 "errors": []
2476 },
2477 "timestamp type schema - 1937-01-01T12:00:27.87+00:20": {
2478 "schema": {
2479 "type": "timestamp"
2480 },
2481 "instance": "1937-01-01T12:00:27.87+00:20",
2482 "errors": []
2483 },
2484 "enum schema - null": {
2485 "schema": {
2486 "enum": [
2487 "foo",
2488 "bar",
2489 "baz"
2490 ]
2491 },
2492 "instance": null,
2493 "errors": [
2494 {
2495 "instancePath": [],
2496 "schemaPath": [
2497 "enum"
2498 ]
2499 }
2500 ]
2501 },
2502 "enum schema - boolean": {
2503 "schema": {
2504 "enum": [
2505 "foo",
2506 "bar",
2507 "baz"
2508 ]
2509 },
2510 "instance": true,
2511 "errors": [
2512 {
2513 "instancePath": [],
2514 "schemaPath": [
2515 "enum"
2516 ]
2517 }
2518 ]
2519 },
2520 "enum schema - integer": {
2521 "schema": {
2522 "enum": [
2523 "foo",
2524 "bar",
2525 "baz"
2526 ]
2527 },
2528 "instance": 1,
2529 "errors": [
2530 {
2531 "instancePath": [],
2532 "schemaPath": [
2533 "enum"
2534 ]
2535 }
2536 ]
2537 },
2538 "enum schema - float": {
2539 "schema": {
2540 "enum": [
2541 "foo",
2542 "bar",
2543 "baz"
2544 ]
2545 },
2546 "instance": 3.14,
2547 "errors": [
2548 {
2549 "instancePath": [],
2550 "schemaPath": [
2551 "enum"
2552 ]
2553 }
2554 ]
2555 },
2556 "enum schema - string": {
2557 "schema": {
2558 "enum": [
2559 "foo",
2560 "bar",
2561 "baz"
2562 ]
2563 },
2564 "instance": "foo",
2565 "errors": []
2566 },
2567 "enum schema - array": {
2568 "schema": {
2569 "enum": [
2570 "foo",
2571 "bar",
2572 "baz"
2573 ]
2574 },
2575 "instance": [],
2576 "errors": [
2577 {
2578 "instancePath": [],
2579 "schemaPath": [
2580 "enum"
2581 ]
2582 }
2583 ]
2584 },
2585 "enum schema - object": {
2586 "schema": {
2587 "enum": [
2588 "foo",
2589 "bar",
2590 "baz"
2591 ]
2592 },
2593 "instance": {},
2594 "errors": [
2595 {
2596 "instancePath": [],
2597 "schemaPath": [
2598 "enum"
2599 ]
2600 }
2601 ]
2602 },
2603 "nullable enum schema - null": {
2604 "schema": {
2605 "enum": [
2606 "foo",
2607 "bar",
2608 "baz"
2609 ],
2610 "nullable": true
2611 },
2612 "instance": null,
2613 "errors": []
2614 },
2615 "nullable enum schema - boolean": {
2616 "schema": {
2617 "enum": [
2618 "foo",
2619 "bar",
2620 "baz"
2621 ],
2622 "nullable": true
2623 },
2624 "instance": true,
2625 "errors": [
2626 {
2627 "instancePath": [],
2628 "schemaPath": [
2629 "enum"
2630 ]
2631 }
2632 ]
2633 },
2634 "nullable enum schema - integer": {
2635 "schema": {
2636 "enum": [
2637 "foo",
2638 "bar",
2639 "baz"
2640 ],
2641 "nullable": true
2642 },
2643 "instance": 1,
2644 "errors": [
2645 {
2646 "instancePath": [],
2647 "schemaPath": [
2648 "enum"
2649 ]
2650 }
2651 ]
2652 },
2653 "nullable enum schema - float": {
2654 "schema": {
2655 "enum": [
2656 "foo",
2657 "bar",
2658 "baz"
2659 ],
2660 "nullable": true
2661 },
2662 "instance": 3.14,
2663 "errors": [
2664 {
2665 "instancePath": [],
2666 "schemaPath": [
2667 "enum"
2668 ]
2669 }
2670 ]
2671 },
2672 "nullable enum schema - string": {
2673 "schema": {
2674 "enum": [
2675 "foo",
2676 "bar",
2677 "baz"
2678 ],
2679 "nullable": true
2680 },
2681 "instance": "foo",
2682 "errors": []
2683 },
2684 "nullable enum schema - array": {
2685 "schema": {
2686 "enum": [
2687 "foo",
2688 "bar",
2689 "baz"
2690 ],
2691 "nullable": true
2692 },
2693 "instance": [],
2694 "errors": [
2695 {
2696 "instancePath": [],
2697 "schemaPath": [
2698 "enum"
2699 ]
2700 }
2701 ]
2702 },
2703 "nullable enum schema - object": {
2704 "schema": {
2705 "enum": [
2706 "foo",
2707 "bar",
2708 "baz"
2709 ],
2710 "nullable": true
2711 },
2712 "instance": {},
2713 "errors": [
2714 {
2715 "instancePath": [],
2716 "schemaPath": [
2717 "enum"
2718 ]
2719 }
2720 ]
2721 },
2722 "enum schema - value not in enum": {
2723 "schema": {
2724 "enum": [
2725 "foo",
2726 "bar",
2727 "baz"
2728 ],
2729 "nullable": true
2730 },
2731 "instance": "quux",
2732 "errors": [
2733 {
2734 "instancePath": [],
2735 "schemaPath": [
2736 "enum"
2737 ]
2738 }
2739 ]
2740 },
2741 "enum schema - ok": {
2742 "schema": {
2743 "enum": [
2744 "foo",
2745 "bar",
2746 "baz"
2747 ],
2748 "nullable": true
2749 },
2750 "instance": "bar",
2751 "errors": []
2752 },
2753 "elements schema - null": {
2754 "schema": {
2755 "elements": {
2756 "type": "string"
2757 }
2758 },
2759 "instance": null,
2760 "errors": [
2761 {
2762 "instancePath": [],
2763 "schemaPath": [
2764 "elements"
2765 ]
2766 }
2767 ]
2768 },
2769 "elements schema - boolean": {
2770 "schema": {
2771 "elements": {
2772 "type": "string"
2773 }
2774 },
2775 "instance": true,
2776 "errors": [
2777 {
2778 "instancePath": [],
2779 "schemaPath": [
2780 "elements"
2781 ]
2782 }
2783 ]
2784 },
2785 "elements schema - float": {
2786 "schema": {
2787 "elements": {
2788 "type": "string"
2789 }
2790 },
2791 "instance": 3.14,
2792 "errors": [
2793 {
2794 "instancePath": [],
2795 "schemaPath": [
2796 "elements"
2797 ]
2798 }
2799 ]
2800 },
2801 "elements schema - integer": {
2802 "schema": {
2803 "elements": {
2804 "type": "string"
2805 }
2806 },
2807 "instance": 1,
2808 "errors": [
2809 {
2810 "instancePath": [],
2811 "schemaPath": [
2812 "elements"
2813 ]
2814 }
2815 ]
2816 },
2817 "elements schema - string": {
2818 "schema": {
2819 "elements": {
2820 "type": "string"
2821 }
2822 },
2823 "instance": "foo",
2824 "errors": [
2825 {
2826 "instancePath": [],
2827 "schemaPath": [
2828 "elements"
2829 ]
2830 }
2831 ]
2832 },
2833 "elements schema - object": {
2834 "schema": {
2835 "elements": {
2836 "type": "string"
2837 }
2838 },
2839 "instance": {},
2840 "errors": [
2841 {
2842 "instancePath": [],
2843 "schemaPath": [
2844 "elements"
2845 ]
2846 }
2847 ]
2848 },
2849 "nullable elements schema - null": {
2850 "schema": {
2851 "elements": {
2852 "type": "string"
2853 },
2854 "nullable": true
2855 },
2856 "instance": null,
2857 "errors": []
2858 },
2859 "nullable elements schema - boolean": {
2860 "schema": {
2861 "elements": {
2862 "type": "string"
2863 },
2864 "nullable": true
2865 },
2866 "instance": true,
2867 "errors": [
2868 {
2869 "instancePath": [],
2870 "schemaPath": [
2871 "elements"
2872 ]
2873 }
2874 ]
2875 },
2876 "nullable elements schema - float": {
2877 "schema": {
2878 "elements": {
2879 "type": "string"
2880 },
2881 "nullable": true
2882 },
2883 "instance": 3.14,
2884 "errors": [
2885 {
2886 "instancePath": [],
2887 "schemaPath": [
2888 "elements"
2889 ]
2890 }
2891 ]
2892 },
2893 "nullable elements schema - integer": {
2894 "schema": {
2895 "elements": {
2896 "type": "string"
2897 },
2898 "nullable": true
2899 },
2900 "instance": 1,
2901 "errors": [
2902 {
2903 "instancePath": [],
2904 "schemaPath": [
2905 "elements"
2906 ]
2907 }
2908 ]
2909 },
2910 "nullable elements schema - string": {
2911 "schema": {
2912 "elements": {
2913 "type": "string"
2914 },
2915 "nullable": true
2916 },
2917 "instance": "foo",
2918 "errors": [
2919 {
2920 "instancePath": [],
2921 "schemaPath": [
2922 "elements"
2923 ]
2924 }
2925 ]
2926 },
2927 "nullable elements schema - object": {
2928 "schema": {
2929 "elements": {
2930 "type": "string"
2931 },
2932 "nullable": true
2933 },
2934 "instance": {},
2935 "errors": [
2936 {
2937 "instancePath": [],
2938 "schemaPath": [
2939 "elements"
2940 ]
2941 }
2942 ]
2943 },
2944 "elements schema - empty array": {
2945 "schema": {
2946 "elements": {
2947 "type": "string"
2948 }
2949 },
2950 "instance": [],
2951 "errors": []
2952 },
2953 "elements schema - all values ok": {
2954 "schema": {
2955 "elements": {
2956 "type": "string"
2957 }
2958 },
2959 "instance": [
2960 "foo",
2961 "bar",
2962 "baz"
2963 ],
2964 "errors": []
2965 },
2966 "elements schema - some values bad": {
2967 "schema": {
2968 "elements": {
2969 "type": "string"
2970 }
2971 },
2972 "instance": [
2973 "foo",
2974 null,
2975 null
2976 ],
2977 "errors": [
2978 {
2979 "instancePath": [
2980 "1"
2981 ],
2982 "schemaPath": [
2983 "elements",
2984 "type"
2985 ]
2986 },
2987 {
2988 "instancePath": [
2989 "2"
2990 ],
2991 "schemaPath": [
2992 "elements",
2993 "type"
2994 ]
2995 }
2996 ]
2997 },
2998 "elements schema - all values bad": {
2999 "schema": {
3000 "elements": {
3001 "type": "string"
3002 }
3003 },
3004 "instance": [
3005 null,
3006 null,
3007 null
3008 ],
3009 "errors": [
3010 {
3011 "instancePath": [
3012 "0"
3013 ],
3014 "schemaPath": [
3015 "elements",
3016 "type"
3017 ]
3018 },
3019 {
3020 "instancePath": [
3021 "1"
3022 ],
3023 "schemaPath": [
3024 "elements",
3025 "type"
3026 ]
3027 },
3028 {
3029 "instancePath": [
3030 "2"
3031 ],
3032 "schemaPath": [
3033 "elements",
3034 "type"
3035 ]
3036 }
3037 ]
3038 },
3039 "elements schema - nested elements, ok": {
3040 "schema": {
3041 "elements": {
3042 "elements": {
3043 "type": "string"
3044 }
3045 }
3046 },
3047 "instance": [
3048 [],
3049 [
3050 "foo"
3051 ],
3052 [
3053 "foo",
3054 "bar",
3055 "baz"
3056 ]
3057 ],
3058 "errors": []
3059 },
3060 "elements schema - nested elements, bad": {
3061 "schema": {
3062 "elements": {
3063 "elements": {
3064 "type": "string"
3065 }
3066 }
3067 },
3068 "instance": [
3069 [
3070 null
3071 ],
3072 [
3073 "foo"
3074 ],
3075 [
3076 "foo",
3077 null,
3078 "baz"
3079 ],
3080 null
3081 ],
3082 "errors": [
3083 {
3084 "instancePath": [
3085 "0",
3086 "0"
3087 ],
3088 "schemaPath": [
3089 "elements",
3090 "elements",
3091 "type"
3092 ]
3093 },
3094 {
3095 "instancePath": [
3096 "2",
3097 "1"
3098 ],
3099 "schemaPath": [
3100 "elements",
3101 "elements",
3102 "type"
3103 ]
3104 },
3105 {
3106 "instancePath": [
3107 "3"
3108 ],
3109 "schemaPath": [
3110 "elements",
3111 "elements"
3112 ]
3113 }
3114 ]
3115 },
3116 "properties schema - null": {
3117 "schema": {
3118 "properties": {
3119 "foo": {
3120 "type": "string"
3121 }
3122 }
3123 },
3124 "instance": null,
3125 "errors": [
3126 {
3127 "instancePath": [],
3128 "schemaPath": [
3129 "properties"
3130 ]
3131 }
3132 ]
3133 },
3134 "properties schema - boolean": {
3135 "schema": {
3136 "properties": {
3137 "foo": {
3138 "type": "string"
3139 }
3140 }
3141 },
3142 "instance": true,
3143 "errors": [
3144 {
3145 "instancePath": [],
3146 "schemaPath": [
3147 "properties"
3148 ]
3149 }
3150 ]
3151 },
3152 "properties schema - float": {
3153 "schema": {
3154 "properties": {
3155 "foo": {
3156 "type": "string"
3157 }
3158 }
3159 },
3160 "instance": 3.14,
3161 "errors": [
3162 {
3163 "instancePath": [],
3164 "schemaPath": [
3165 "properties"
3166 ]
3167 }
3168 ]
3169 },
3170 "properties schema - integer": {
3171 "schema": {
3172 "properties": {
3173 "foo": {
3174 "type": "string"
3175 }
3176 }
3177 },
3178 "instance": 1,
3179 "errors": [
3180 {
3181 "instancePath": [],
3182 "schemaPath": [
3183 "properties"
3184 ]
3185 }
3186 ]
3187 },
3188 "properties schema - string": {
3189 "schema": {
3190 "properties": {
3191 "foo": {
3192 "type": "string"
3193 }
3194 }
3195 },
3196 "instance": "foo",
3197 "errors": [
3198 {
3199 "instancePath": [],
3200 "schemaPath": [
3201 "properties"
3202 ]
3203 }
3204 ]
3205 },
3206 "properties schema - array": {
3207 "schema": {
3208 "properties": {
3209 "foo": {
3210 "type": "string"
3211 }
3212 }
3213 },
3214 "instance": [],
3215 "errors": [
3216 {
3217 "instancePath": [],
3218 "schemaPath": [
3219 "properties"
3220 ]
3221 }
3222 ]
3223 },
3224 "nullable properties schema - null": {
3225 "schema": {
3226 "properties": {
3227 "foo": {
3228 "type": "string"
3229 }
3230 },
3231 "nullable": true
3232 },
3233 "instance": null,
3234 "errors": []
3235 },
3236 "nullable properties schema - boolean": {
3237 "schema": {
3238 "properties": {
3239 "foo": {
3240 "type": "string"
3241 }
3242 },
3243 "nullable": true
3244 },
3245 "instance": true,
3246 "errors": [
3247 {
3248 "instancePath": [],
3249 "schemaPath": [
3250 "properties"
3251 ]
3252 }
3253 ]
3254 },
3255 "nullable properties schema - float": {
3256 "schema": {
3257 "properties": {
3258 "foo": {
3259 "type": "string"
3260 }
3261 },
3262 "nullable": true
3263 },
3264 "instance": 3.14,
3265 "errors": [
3266 {
3267 "instancePath": [],
3268 "schemaPath": [
3269 "properties"
3270 ]
3271 }
3272 ]
3273 },
3274 "nullable properties schema - integer": {
3275 "schema": {
3276 "properties": {
3277 "foo": {
3278 "type": "string"
3279 }
3280 },
3281 "nullable": true
3282 },
3283 "instance": 1,
3284 "errors": [
3285 {
3286 "instancePath": [],
3287 "schemaPath": [
3288 "properties"
3289 ]
3290 }
3291 ]
3292 },
3293 "nullable properties schema - string": {
3294 "schema": {
3295 "properties": {
3296 "foo": {
3297 "type": "string"
3298 }
3299 },
3300 "nullable": true
3301 },
3302 "instance": "foo",
3303 "errors": [
3304 {
3305 "instancePath": [],
3306 "schemaPath": [
3307 "properties"
3308 ]
3309 }
3310 ]
3311 },
3312 "nullable properties schema - array": {
3313 "schema": {
3314 "properties": {
3315 "foo": {
3316 "type": "string"
3317 }
3318 },
3319 "nullable": true
3320 },
3321 "instance": [],
3322 "errors": [
3323 {
3324 "instancePath": [],
3325 "schemaPath": [
3326 "properties"
3327 ]
3328 }
3329 ]
3330 },
3331 "properties and optionalProperties schema - null": {
3332 "schema": {
3333 "properties": {
3334 "foo": {
3335 "type": "string"
3336 }
3337 },
3338 "optionalProperties": {
3339 "bar": {
3340 "type": "string"
3341 }
3342 }
3343 },
3344 "instance": null,
3345 "errors": [
3346 {
3347 "instancePath": [],
3348 "schemaPath": [
3349 "properties"
3350 ]
3351 }
3352 ]
3353 },
3354 "properties and optionalProperties schema - boolean": {
3355 "schema": {
3356 "properties": {
3357 "foo": {
3358 "type": "string"
3359 }
3360 },
3361 "optionalProperties": {
3362 "bar": {
3363 "type": "string"
3364 }
3365 }
3366 },
3367 "instance": true,
3368 "errors": [
3369 {
3370 "instancePath": [],
3371 "schemaPath": [
3372 "properties"
3373 ]
3374 }
3375 ]
3376 },
3377 "properties and optionalProperties schema - float": {
3378 "schema": {
3379 "properties": {
3380 "foo": {
3381 "type": "string"
3382 }
3383 },
3384 "optionalProperties": {
3385 "bar": {
3386 "type": "string"
3387 }
3388 }
3389 },
3390 "instance": 3.14,
3391 "errors": [
3392 {
3393 "instancePath": [],
3394 "schemaPath": [
3395 "properties"
3396 ]
3397 }
3398 ]
3399 },
3400 "properties and optionalProperties schema - integer": {
3401 "schema": {
3402 "properties": {
3403 "foo": {
3404 "type": "string"
3405 }
3406 },
3407 "optionalProperties": {
3408 "bar": {
3409 "type": "string"
3410 }
3411 }
3412 },
3413 "instance": 1,
3414 "errors": [
3415 {
3416 "instancePath": [],
3417 "schemaPath": [
3418 "properties"
3419 ]
3420 }
3421 ]
3422 },
3423 "properties and optionalProperties schema - string": {
3424 "schema": {
3425 "properties": {
3426 "foo": {
3427 "type": "string"
3428 }
3429 },
3430 "optionalProperties": {
3431 "bar": {
3432 "type": "string"
3433 }
3434 }
3435 },
3436 "instance": "foo",
3437 "errors": [
3438 {
3439 "instancePath": [],
3440 "schemaPath": [
3441 "properties"
3442 ]
3443 }
3444 ]
3445 },
3446 "properties and optionalProperties schema - array": {
3447 "schema": {
3448 "properties": {
3449 "foo": {
3450 "type": "string"
3451 }
3452 },
3453 "optionalProperties": {
3454 "bar": {
3455 "type": "string"
3456 }
3457 }
3458 },
3459 "instance": [],
3460 "errors": [
3461 {
3462 "instancePath": [],
3463 "schemaPath": [
3464 "properties"
3465 ]
3466 }
3467 ]
3468 },
3469 "optionalProperties schema - null": {
3470 "schema": {
3471 "optionalProperties": {
3472 "foo": {
3473 "type": "string"
3474 }
3475 }
3476 },
3477 "instance": null,
3478 "errors": [
3479 {
3480 "instancePath": [],
3481 "schemaPath": [
3482 "optionalProperties"
3483 ]
3484 }
3485 ]
3486 },
3487 "optionalProperties schema - boolean": {
3488 "schema": {
3489 "optionalProperties": {
3490 "foo": {
3491 "type": "string"
3492 }
3493 }
3494 },
3495 "instance": true,
3496 "errors": [
3497 {
3498 "instancePath": [],
3499 "schemaPath": [
3500 "optionalProperties"
3501 ]
3502 }
3503 ]
3504 },
3505 "optionalProperties schema - float": {
3506 "schema": {
3507 "optionalProperties": {
3508 "foo": {
3509 "type": "string"
3510 }
3511 }
3512 },
3513 "instance": 3.14,
3514 "errors": [
3515 {
3516 "instancePath": [],
3517 "schemaPath": [
3518 "optionalProperties"
3519 ]
3520 }
3521 ]
3522 },
3523 "optionalProperties schema - integer": {
3524 "schema": {
3525 "optionalProperties": {
3526 "foo": {
3527 "type": "string"
3528 }
3529 }
3530 },
3531 "instance": 1,
3532 "errors": [
3533 {
3534 "instancePath": [],
3535 "schemaPath": [
3536 "optionalProperties"
3537 ]
3538 }
3539 ]
3540 },
3541 "optionalProperties schema - string": {
3542 "schema": {
3543 "optionalProperties": {
3544 "foo": {
3545 "type": "string"
3546 }
3547 }
3548 },
3549 "instance": "foo",
3550 "errors": [
3551 {
3552 "instancePath": [],
3553 "schemaPath": [
3554 "optionalProperties"
3555 ]
3556 }
3557 ]
3558 },
3559 "optionalProperties schema - array": {
3560 "schema": {
3561 "optionalProperties": {
3562 "foo": {
3563 "type": "string"
3564 }
3565 }
3566 },
3567 "instance": [],
3568 "errors": [
3569 {
3570 "instancePath": [],
3571 "schemaPath": [
3572 "optionalProperties"
3573 ]
3574 }
3575 ]
3576 },
3577 "strict properties - ok": {
3578 "schema": {
3579 "properties": {
3580 "foo": {
3581 "type": "string"
3582 }
3583 }
3584 },
3585 "instance": {
3586 "foo": "foo"
3587 },
3588 "errors": []
3589 },
3590 "strict properties - bad wrong type": {
3591 "schema": {
3592 "properties": {
3593 "foo": {
3594 "type": "string"
3595 }
3596 }
3597 },
3598 "instance": {
3599 "foo": 123
3600 },
3601 "errors": [
3602 {
3603 "instancePath": [
3604 "foo"
3605 ],
3606 "schemaPath": [
3607 "properties",
3608 "foo",
3609 "type"
3610 ]
3611 }
3612 ]
3613 },
3614 "strict properties - bad missing property": {
3615 "schema": {
3616 "properties": {
3617 "foo": {
3618 "type": "string"
3619 }
3620 }
3621 },
3622 "instance": {},
3623 "errors": [
3624 {
3625 "instancePath": [],
3626 "schemaPath": [
3627 "properties",
3628 "foo"
3629 ]
3630 }
3631 ]
3632 },
3633 "strict properties - bad additional property": {
3634 "schema": {
3635 "properties": {
3636 "foo": {
3637 "type": "string"
3638 }
3639 }
3640 },
3641 "instance": {
3642 "foo": "foo",
3643 "bar": "bar"
3644 },
3645 "errors": [
3646 {
3647 "instancePath": [
3648 "bar"
3649 ],
3650 "schemaPath": []
3651 }
3652 ]
3653 },
3654 "strict properties - bad additional property with explicit additionalProperties: false": {
3655 "schema": {
3656 "properties": {
3657 "foo": {
3658 "type": "string"
3659 }
3660 },
3661 "additionalProperties": false
3662 },
3663 "instance": {
3664 "foo": "foo",
3665 "bar": "bar"
3666 },
3667 "errors": [
3668 {
3669 "instancePath": [
3670 "bar"
3671 ],
3672 "schemaPath": []
3673 }
3674 ]
3675 },
3676 "non-strict properties - ok": {
3677 "schema": {
3678 "properties": {
3679 "foo": {
3680 "type": "string"
3681 }
3682 },
3683 "additionalProperties": true
3684 },
3685 "instance": {
3686 "foo": "foo"
3687 },
3688 "errors": []
3689 },
3690 "non-strict properties - bad wrong type": {
3691 "schema": {
3692 "properties": {
3693 "foo": {
3694 "type": "string"
3695 }
3696 },
3697 "additionalProperties": true
3698 },
3699 "instance": {
3700 "foo": 123
3701 },
3702 "errors": [
3703 {
3704 "instancePath": [
3705 "foo"
3706 ],
3707 "schemaPath": [
3708 "properties",
3709 "foo",
3710 "type"
3711 ]
3712 }
3713 ]
3714 },
3715 "non-strict properties - bad missing property": {
3716 "schema": {
3717 "properties": {
3718 "foo": {
3719 "type": "string"
3720 }
3721 },
3722 "additionalProperties": true
3723 },
3724 "instance": {},
3725 "errors": [
3726 {
3727 "instancePath": [],
3728 "schemaPath": [
3729 "properties",
3730 "foo"
3731 ]
3732 }
3733 ]
3734 },
3735 "non-strict properties - ok additional property": {
3736 "schema": {
3737 "properties": {
3738 "foo": {
3739 "type": "string"
3740 }
3741 },
3742 "additionalProperties": true
3743 },
3744 "instance": {
3745 "foo": "foo",
3746 "bar": "bar"
3747 },
3748 "errors": []
3749 },
3750 "strict optionalProperties - ok": {
3751 "schema": {
3752 "optionalProperties": {
3753 "foo": {
3754 "type": "string"
3755 }
3756 }
3757 },
3758 "instance": {
3759 "foo": "foo"
3760 },
3761 "errors": []
3762 },
3763 "strict optionalProperties - bad wrong type": {
3764 "schema": {
3765 "optionalProperties": {
3766 "foo": {
3767 "type": "string"
3768 }
3769 }
3770 },
3771 "instance": {
3772 "foo": 123
3773 },
3774 "errors": [
3775 {
3776 "instancePath": [
3777 "foo"
3778 ],
3779 "schemaPath": [
3780 "optionalProperties",
3781 "foo",
3782 "type"
3783 ]
3784 }
3785 ]
3786 },
3787 "strict optionalProperties - ok missing property": {
3788 "schema": {
3789 "optionalProperties": {
3790 "foo": {
3791 "type": "string"
3792 }
3793 }
3794 },
3795 "instance": {},
3796 "errors": []
3797 },
3798 "strict optionalProperties - bad additional property": {
3799 "schema": {
3800 "optionalProperties": {
3801 "foo": {
3802 "type": "string"
3803 }
3804 }
3805 },
3806 "instance": {
3807 "foo": "foo",
3808 "bar": "bar"
3809 },
3810 "errors": [
3811 {
3812 "instancePath": [
3813 "bar"
3814 ],
3815 "schemaPath": []
3816 }
3817 ]
3818 },
3819 "strict optionalProperties - bad additional property with explicit additionalProperties: false": {
3820 "schema": {
3821 "optionalProperties": {
3822 "foo": {
3823 "type": "string"
3824 }
3825 },
3826 "additionalProperties": false
3827 },
3828 "instance": {
3829 "foo": "foo",
3830 "bar": "bar"
3831 },
3832 "errors": [
3833 {
3834 "instancePath": [
3835 "bar"
3836 ],
3837 "schemaPath": []
3838 }
3839 ]
3840 },
3841 "non-strict optionalProperties - ok": {
3842 "schema": {
3843 "optionalProperties": {
3844 "foo": {
3845 "type": "string"
3846 }
3847 },
3848 "additionalProperties": true
3849 },
3850 "instance": {
3851 "foo": "foo"
3852 },
3853 "errors": []
3854 },
3855 "non-strict optionalProperties - bad wrong type": {
3856 "schema": {
3857 "optionalProperties": {
3858 "foo": {
3859 "type": "string"
3860 }
3861 },
3862 "additionalProperties": true
3863 },
3864 "instance": {
3865 "foo": 123
3866 },
3867 "errors": [
3868 {
3869 "instancePath": [
3870 "foo"
3871 ],
3872 "schemaPath": [
3873 "optionalProperties",
3874 "foo",
3875 "type"
3876 ]
3877 }
3878 ]
3879 },
3880 "non-strict optionalProperties - ok missing property": {
3881 "schema": {
3882 "optionalProperties": {
3883 "foo": {
3884 "type": "string"
3885 }
3886 },
3887 "additionalProperties": true
3888 },
3889 "instance": {},
3890 "errors": []
3891 },
3892 "non-strict optionalProperties - ok additional property": {
3893 "schema": {
3894 "optionalProperties": {
3895 "foo": {
3896 "type": "string"
3897 }
3898 },
3899 "additionalProperties": true
3900 },
3901 "instance": {
3902 "foo": "foo",
3903 "bar": "bar"
3904 },
3905 "errors": []
3906 },
3907 "strict mixed properties and optionalProperties - ok": {
3908 "schema": {
3909 "properties": {
3910 "foo": {
3911 "type": "string"
3912 }
3913 },
3914 "optionalProperties": {
3915 "bar": {
3916 "type": "string"
3917 }
3918 }
3919 },
3920 "instance": {
3921 "foo": "foo",
3922 "bar": "bar"
3923 },
3924 "errors": []
3925 },
3926 "strict mixed properties and optionalProperties - bad": {
3927 "schema": {
3928 "properties": {
3929 "foo": {
3930 "type": "string"
3931 }
3932 },
3933 "optionalProperties": {
3934 "bar": {
3935 "type": "string"
3936 }
3937 }
3938 },
3939 "instance": {
3940 "foo": 123,
3941 "bar": 123
3942 },
3943 "errors": [
3944 {
3945 "instancePath": [
3946 "foo"
3947 ],
3948 "schemaPath": [
3949 "properties",
3950 "foo",
3951 "type"
3952 ]
3953 },
3954 {
3955 "instancePath": [
3956 "bar"
3957 ],
3958 "schemaPath": [
3959 "optionalProperties",
3960 "bar",
3961 "type"
3962 ]
3963 }
3964 ]
3965 },
3966 "strict mixed properties and optionalProperties - bad additional property": {
3967 "schema": {
3968 "properties": {
3969 "foo": {
3970 "type": "string"
3971 }
3972 },
3973 "optionalProperties": {
3974 "bar": {
3975 "type": "string"
3976 }
3977 }
3978 },
3979 "instance": {
3980 "foo": "foo",
3981 "bar": "bar",
3982 "baz": "baz"
3983 },
3984 "errors": [
3985 {
3986 "instancePath": [
3987 "baz"
3988 ],
3989 "schemaPath": []
3990 }
3991 ]
3992 },
3993 "values schema - null": {
3994 "schema": {
3995 "values": {
3996 "type": "string"
3997 }
3998 },
3999 "instance": null,
4000 "errors": [
4001 {
4002 "instancePath": [],
4003 "schemaPath": [
4004 "values"
4005 ]
4006 }
4007 ]
4008 },
4009 "values schema - boolean": {
4010 "schema": {
4011 "values": {
4012 "type": "string"
4013 }
4014 },
4015 "instance": true,
4016 "errors": [
4017 {
4018 "instancePath": [],
4019 "schemaPath": [
4020 "values"
4021 ]
4022 }
4023 ]
4024 },
4025 "values schema - float": {
4026 "schema": {
4027 "values": {
4028 "type": "string"
4029 }
4030 },
4031 "instance": 3.14,
4032 "errors": [
4033 {
4034 "instancePath": [],
4035 "schemaPath": [
4036 "values"
4037 ]
4038 }
4039 ]
4040 },
4041 "values schema - integer": {
4042 "schema": {
4043 "values": {
4044 "type": "string"
4045 }
4046 },
4047 "instance": 1,
4048 "errors": [
4049 {
4050 "instancePath": [],
4051 "schemaPath": [
4052 "values"
4053 ]
4054 }
4055 ]
4056 },
4057 "values schema - string": {
4058 "schema": {
4059 "values": {
4060 "type": "string"
4061 }
4062 },
4063 "instance": "foo",
4064 "errors": [
4065 {
4066 "instancePath": [],
4067 "schemaPath": [
4068 "values"
4069 ]
4070 }
4071 ]
4072 },
4073 "values schema - array": {
4074 "schema": {
4075 "values": {
4076 "type": "string"
4077 }
4078 },
4079 "instance": [],
4080 "errors": [
4081 {
4082 "instancePath": [],
4083 "schemaPath": [
4084 "values"
4085 ]
4086 }
4087 ]
4088 },
4089 "nullable values schema - null": {
4090 "schema": {
4091 "values": {
4092 "type": "string"
4093 },
4094 "nullable": true
4095 },
4096 "instance": null,
4097 "errors": []
4098 },
4099 "nullable values schema - boolean": {
4100 "schema": {
4101 "values": {
4102 "type": "string"
4103 },
4104 "nullable": true
4105 },
4106 "instance": true,
4107 "errors": [
4108 {
4109 "instancePath": [],
4110 "schemaPath": [
4111 "values"
4112 ]
4113 }
4114 ]
4115 },
4116 "nullable values schema - float": {
4117 "schema": {
4118 "values": {
4119 "type": "string"
4120 },
4121 "nullable": true
4122 },
4123 "instance": 3.14,
4124 "errors": [
4125 {
4126 "instancePath": [],
4127 "schemaPath": [
4128 "values"
4129 ]
4130 }
4131 ]
4132 },
4133 "nullable values schema - integer": {
4134 "schema": {
4135 "values": {
4136 "type": "string"
4137 },
4138 "nullable": true
4139 },
4140 "instance": 1,
4141 "errors": [
4142 {
4143 "instancePath": [],
4144 "schemaPath": [
4145 "values"
4146 ]
4147 }
4148 ]
4149 },
4150 "nullable values schema - string": {
4151 "schema": {
4152 "values": {
4153 "type": "string"
4154 },
4155 "nullable": true
4156 },
4157 "instance": "foo",
4158 "errors": [
4159 {
4160 "instancePath": [],
4161 "schemaPath": [
4162 "values"
4163 ]
4164 }
4165 ]
4166 },
4167 "nullable values schema - array": {
4168 "schema": {
4169 "values": {
4170 "type": "string"
4171 },
4172 "nullable": true
4173 },
4174 "instance": [],
4175 "errors": [
4176 {
4177 "instancePath": [],
4178 "schemaPath": [
4179 "values"
4180 ]
4181 }
4182 ]
4183 },
4184 "values schema - empty object": {
4185 "schema": {
4186 "values": {
4187 "type": "string"
4188 }
4189 },
4190 "instance": {},
4191 "errors": []
4192 },
4193 "values schema - all values ok": {
4194 "schema": {
4195 "values": {
4196 "type": "string"
4197 }
4198 },
4199 "instance": {
4200 "foo": "foo",
4201 "bar": "bar",
4202 "baz": "baz"
4203 },
4204 "errors": []
4205 },
4206 "values schema - some values bad": {
4207 "schema": {
4208 "values": {
4209 "type": "string"
4210 }
4211 },
4212 "instance": {
4213 "foo": "foo",
4214 "bar": 123,
4215 "baz": 123
4216 },
4217 "errors": [
4218 {
4219 "instancePath": [
4220 "bar"
4221 ],
4222 "schemaPath": [
4223 "values",
4224 "type"
4225 ]
4226 },
4227 {
4228 "instancePath": [
4229 "baz"
4230 ],
4231 "schemaPath": [
4232 "values",
4233 "type"
4234 ]
4235 }
4236 ]
4237 },
4238 "values schema - all values bad": {
4239 "schema": {
4240 "values": {
4241 "type": "string"
4242 }
4243 },
4244 "instance": {
4245 "foo": 123,
4246 "bar": 123,
4247 "baz": 123
4248 },
4249 "errors": [
4250 {
4251 "instancePath": [
4252 "foo"
4253 ],
4254 "schemaPath": [
4255 "values",
4256 "type"
4257 ]
4258 },
4259 {
4260 "instancePath": [
4261 "bar"
4262 ],
4263 "schemaPath": [
4264 "values",
4265 "type"
4266 ]
4267 },
4268 {
4269 "instancePath": [
4270 "baz"
4271 ],
4272 "schemaPath": [
4273 "values",
4274 "type"
4275 ]
4276 }
4277 ]
4278 },
4279 "values schema - nested values, ok": {
4280 "schema": {
4281 "values": {
4282 "values": {
4283 "type": "string"
4284 }
4285 }
4286 },
4287 "instance": {
4288 "a0": {
4289 "b0": "c"
4290 },
4291 "a1": {},
4292 "a2": {
4293 "b0": "c"
4294 }
4295 },
4296 "errors": []
4297 },
4298 "values schema - nested values, bad": {
4299 "schema": {
4300 "values": {
4301 "values": {
4302 "type": "string"
4303 }
4304 }
4305 },
4306 "instance": {
4307 "a0": {
4308 "b0": null
4309 },
4310 "a1": {
4311 "b0": "c"
4312 },
4313 "a2": {
4314 "b0": "c",
4315 "b1": null
4316 },
4317 "a3": null
4318 },
4319 "errors": [
4320 {
4321 "instancePath": [
4322 "a0",
4323 "b0"
4324 ],
4325 "schemaPath": [
4326 "values",
4327 "values",
4328 "type"
4329 ]
4330 },
4331 {
4332 "instancePath": [
4333 "a2",
4334 "b1"
4335 ],
4336 "schemaPath": [
4337 "values",
4338 "values",
4339 "type"
4340 ]
4341 },
4342 {
4343 "instancePath": [
4344 "a3"
4345 ],
4346 "schemaPath": [
4347 "values",
4348 "values"
4349 ]
4350 }
4351 ]
4352 },
4353 "discriminator schema - null": {
4354 "schema": {
4355 "discriminator": "foo",
4356 "mapping": {}
4357 },
4358 "instance": null,
4359 "errors": [
4360 {
4361 "instancePath": [],
4362 "schemaPath": [
4363 "discriminator"
4364 ]
4365 }
4366 ]
4367 },
4368 "discriminator schema - boolean": {
4369 "schema": {
4370 "discriminator": "foo",
4371 "mapping": {}
4372 },
4373 "instance": true,
4374 "errors": [
4375 {
4376 "instancePath": [],
4377 "schemaPath": [
4378 "discriminator"
4379 ]
4380 }
4381 ]
4382 },
4383 "discriminator schema - float": {
4384 "schema": {
4385 "discriminator": "foo",
4386 "mapping": {}
4387 },
4388 "instance": 3.14,
4389 "errors": [
4390 {
4391 "instancePath": [],
4392 "schemaPath": [
4393 "discriminator"
4394 ]
4395 }
4396 ]
4397 },
4398 "discriminator schema - integer": {
4399 "schema": {
4400 "discriminator": "foo",
4401 "mapping": {}
4402 },
4403 "instance": 1,
4404 "errors": [
4405 {
4406 "instancePath": [],
4407 "schemaPath": [
4408 "discriminator"
4409 ]
4410 }
4411 ]
4412 },
4413 "discriminator schema - string": {
4414 "schema": {
4415 "discriminator": "foo",
4416 "mapping": {}
4417 },
4418 "instance": "foo",
4419 "errors": [
4420 {
4421 "instancePath": [],
4422 "schemaPath": [
4423 "discriminator"
4424 ]
4425 }
4426 ]
4427 },
4428 "discriminator schema - array": {
4429 "schema": {
4430 "discriminator": "foo",
4431 "mapping": {}
4432 },
4433 "instance": [],
4434 "errors": [
4435 {
4436 "instancePath": [],
4437 "schemaPath": [
4438 "discriminator"
4439 ]
4440 }
4441 ]
4442 },
4443 "nullable discriminator schema - null": {
4444 "schema": {
4445 "discriminator": "foo",
4446 "mapping": {},
4447 "nullable": true
4448 },
4449 "instance": null,
4450 "errors": []
4451 },
4452 "nullable discriminator schema - boolean": {
4453 "schema": {
4454 "discriminator": "foo",
4455 "mapping": {},
4456 "nullable": true
4457 },
4458 "instance": true,
4459 "errors": [
4460 {
4461 "instancePath": [],
4462 "schemaPath": [
4463 "discriminator"
4464 ]
4465 }
4466 ]
4467 },
4468 "nullable discriminator schema - float": {
4469 "schema": {
4470 "discriminator": "foo",
4471 "mapping": {},
4472 "nullable": true
4473 },
4474 "instance": 3.14,
4475 "errors": [
4476 {
4477 "instancePath": [],
4478 "schemaPath": [
4479 "discriminator"
4480 ]
4481 }
4482 ]
4483 },
4484 "nullable discriminator schema - integer": {
4485 "schema": {
4486 "discriminator": "foo",
4487 "mapping": {},
4488 "nullable": true
4489 },
4490 "instance": 1,
4491 "errors": [
4492 {
4493 "instancePath": [],
4494 "schemaPath": [
4495 "discriminator"
4496 ]
4497 }
4498 ]
4499 },
4500 "nullable discriminator schema - string": {
4501 "schema": {
4502 "discriminator": "foo",
4503 "mapping": {},
4504 "nullable": true
4505 },
4506 "instance": "foo",
4507 "errors": [
4508 {
4509 "instancePath": [],
4510 "schemaPath": [
4511 "discriminator"
4512 ]
4513 }
4514 ]
4515 },
4516 "nullable discriminator schema - array": {
4517 "schema": {
4518 "discriminator": "foo",
4519 "mapping": {},
4520 "nullable": true
4521 },
4522 "instance": [],
4523 "errors": [
4524 {
4525 "instancePath": [],
4526 "schemaPath": [
4527 "discriminator"
4528 ]
4529 }
4530 ]
4531 },
4532 "discriminator schema - discriminator missing": {
4533 "schema": {
4534 "discriminator": "foo",
4535 "mapping": {
4536 "x": {
4537 "properties": {
4538 "a": {
4539 "type": "string"
4540 }
4541 }
4542 },
4543 "y": {
4544 "properties": {
4545 "a": {
4546 "type": "float64"
4547 }
4548 }
4549 }
4550 }
4551 },
4552 "instance": {},
4553 "errors": [
4554 {
4555 "instancePath": [],
4556 "schemaPath": [
4557 "discriminator"
4558 ]
4559 }
4560 ]
4561 },
4562 "discriminator schema - discriminator not string": {
4563 "schema": {
4564 "discriminator": "foo",
4565 "mapping": {
4566 "x": {
4567 "properties": {
4568 "a": {
4569 "type": "string"
4570 }
4571 }
4572 },
4573 "y": {
4574 "properties": {
4575 "a": {
4576 "type": "float64"
4577 }
4578 }
4579 }
4580 }
4581 },
4582 "instance": {
4583 "foo": null
4584 },
4585 "errors": [
4586 {
4587 "instancePath": [
4588 "foo"
4589 ],
4590 "schemaPath": [
4591 "discriminator"
4592 ]
4593 }
4594 ]
4595 },
4596 "discriminator schema - discriminator not in mapping": {
4597 "schema": {
4598 "discriminator": "foo",
4599 "mapping": {
4600 "x": {
4601 "properties": {
4602 "a": {
4603 "type": "string"
4604 }
4605 }
4606 },
4607 "y": {
4608 "properties": {
4609 "a": {
4610 "type": "float64"
4611 }
4612 }
4613 }
4614 }
4615 },
4616 "instance": {
4617 "foo": "z"
4618 },
4619 "errors": [
4620 {
4621 "instancePath": [
4622 "foo"
4623 ],
4624 "schemaPath": [
4625 "mapping"
4626 ]
4627 }
4628 ]
4629 },
4630 "discriminator schema - instance fails mapping schema": {
4631 "schema": {
4632 "discriminator": "foo",
4633 "mapping": {
4634 "x": {
4635 "properties": {
4636 "a": {
4637 "type": "string"
4638 }
4639 }
4640 },
4641 "y": {
4642 "properties": {
4643 "a": {
4644 "type": "float64"
4645 }
4646 }
4647 }
4648 }
4649 },
4650 "instance": {
4651 "foo": "y",
4652 "a": "a"
4653 },
4654 "errors": [
4655 {
4656 "instancePath": [
4657 "a"
4658 ],
4659 "schemaPath": [
4660 "mapping",
4661 "y",
4662 "properties",
4663 "a",
4664 "type"
4665 ]
4666 }
4667 ]
4668 },
4669 "discriminator schema - ok": {
4670 "schema": {
4671 "discriminator": "foo",
4672 "mapping": {
4673 "x": {
4674 "properties": {
4675 "a": {
4676 "type": "string"
4677 }
4678 }
4679 },
4680 "y": {
4681 "properties": {
4682 "a": {
4683 "type": "float64"
4684 }
4685 }
4686 }
4687 }
4688 },
4689 "instance": {
4690 "foo": "x",
4691 "a": "a"
4692 },
4693 "errors": []
4694 }
4695 }