File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 29
29
"valid" : true
30
30
}
31
31
]
32
+ },
33
+ {
34
+ "description" : " prefixItems: an array of schemas for items" ,
35
+ "schema" : {
36
+ "items" : [
37
+ {"type" : " integer" },
38
+ {"type" : " string" }
39
+ ]
40
+ },
41
+ "tests" : [
42
+ {
43
+ "description" : " correct types" ,
44
+ "data" : [ 1 , " foo" ],
45
+ "valid" : true
46
+ },
47
+ {
48
+ "description" : " wrong types" ,
49
+ "data" : [ " foo" , 1 ],
50
+ "valid" : true
51
+ },
52
+ {
53
+ "description" : " incomplete array of items" ,
54
+ "data" : [ 1 ],
55
+ "valid" : true
56
+ },
57
+ {
58
+ "description" : " array with additional items" ,
59
+ "data" : [ 1 , " foo" , true ],
60
+ "valid" : true
61
+ },
62
+ {
63
+ "description" : " empty array" ,
64
+ "data" : [ ],
65
+ "valid" : true
66
+ },
67
+ {
68
+ "description" : " JavaScript pseudo-array is valid" ,
69
+ "data" : {
70
+ "0" : " invalid" ,
71
+ "1" : " valid" ,
72
+ "length" : 2
73
+ },
74
+ "valid" : true
75
+ }
76
+ ]
32
77
}
33
78
]
You can’t perform that action at this time.
0 commit comments