File tree Expand file tree Collapse file tree 3 files changed +92
-0
lines changed Expand file tree Collapse file tree 3 files changed +92
-0
lines changed Original file line number Diff line number Diff line change 89
89
"description" : " empty array is invalid" ,
90
90
"data" : [],
91
91
"valid" : false
92
+ },
93
+ {
94
+ "description" : " non-arrays are valid" ,
95
+ "data" : " contains does not apply to strings" ,
96
+ "valid" : true
97
+ }
98
+ ]
99
+ },
100
+ {
101
+ "description" : " items + contains" ,
102
+ "schema" : {
103
+ "items" : { "multipleOf" : 2 },
104
+ "contains" : { "multipleOf" : 3 }
105
+ },
106
+ "tests" : [
107
+ {
108
+ "description" : " matches items, does not match contains" ,
109
+ "data" : [ 2 , 4 , 8 ],
110
+ "valid" : false
111
+ },
112
+ {
113
+ "description" : " does not match items, matches contains" ,
114
+ "data" : [ 3 , 6 , 9 ],
115
+ "valid" : false
116
+ },
117
+ {
118
+ "description" : " matches both items and contains" ,
119
+ "data" : [ 6 , 12 ],
120
+ "valid" : true
121
+ },
122
+ {
123
+ "description" : " matches neither items nor contains" ,
124
+ "data" : [ 1 , 5 ],
125
+ "valid" : false
92
126
}
93
127
]
94
128
}
Original file line number Diff line number Diff line change 96
96
"valid" : true
97
97
}
98
98
]
99
+ },
100
+ {
101
+ "description" : " items + contains" ,
102
+ "schema" : {
103
+ "items" : { "multipleOf" : 2 },
104
+ "contains" : { "multipleOf" : 3 }
105
+ },
106
+ "tests" : [
107
+ {
108
+ "description" : " matches items, does not match contains" ,
109
+ "data" : [ 2 , 4 , 8 ],
110
+ "valid" : false
111
+ },
112
+ {
113
+ "description" : " does not match items, matches contains" ,
114
+ "data" : [ 3 , 6 , 9 ],
115
+ "valid" : false
116
+ },
117
+ {
118
+ "description" : " matches both items and contains" ,
119
+ "data" : [ 6 , 12 ],
120
+ "valid" : true
121
+ },
122
+ {
123
+ "description" : " matches neither items nor contains" ,
124
+ "data" : [ 1 , 5 ],
125
+ "valid" : false
126
+ }
127
+ ]
99
128
}
100
129
]
Original file line number Diff line number Diff line change 96
96
"valid" : true
97
97
}
98
98
]
99
+ },
100
+ {
101
+ "description" : " items + contains" ,
102
+ "schema" : {
103
+ "items" : { "multipleOf" : 2 },
104
+ "contains" : { "multipleOf" : 3 }
105
+ },
106
+ "tests" : [
107
+ {
108
+ "description" : " matches items, does not match contains" ,
109
+ "data" : [ 2 , 4 , 8 ],
110
+ "valid" : false
111
+ },
112
+ {
113
+ "description" : " does not match items, matches contains" ,
114
+ "data" : [ 3 , 6 , 9 ],
115
+ "valid" : false
116
+ },
117
+ {
118
+ "description" : " matches both items and contains" ,
119
+ "data" : [ 6 , 12 ],
120
+ "valid" : true
121
+ },
122
+ {
123
+ "description" : " matches neither items nor contains" ,
124
+ "data" : [ 1 , 5 ],
125
+ "valid" : false
126
+ }
127
+ ]
99
128
}
100
129
]
You can’t perform that action at this time.
0 commit comments