File tree Expand file tree Collapse file tree 2 files changed +32
-2
lines changed Expand file tree Collapse file tree 2 files changed +32
-2
lines changed Original file line number Diff line number Diff line change 126
126
]
127
127
},
128
128
{
129
- "description" : " const with 0 does not match false " ,
129
+ "description" : " const with 0 does not match other zero-like types " ,
130
130
"schema" : {"const" : 0 },
131
131
"tests" : [
132
132
{
143
143
"description" : " float zero is valid" ,
144
144
"data" : 0.0 ,
145
145
"valid" : true
146
+ },
147
+ {
148
+ "description" : " empty object is invalid" ,
149
+ "data" : {},
150
+ "valid" : false
151
+ },
152
+ {
153
+ "description" : " empty array is invalid" ,
154
+ "data" : [],
155
+ "valid" : false
156
+ },
157
+ {
158
+ "description" : " empty string is invalid" ,
159
+ "data" : " " ,
160
+ "valid" : false
146
161
}
147
162
]
148
163
},
Original file line number Diff line number Diff line change 126
126
]
127
127
},
128
128
{
129
- "description" : " const with 0 does not match false " ,
129
+ "description" : " const with 0 does not match other zero-like types " ,
130
130
"schema" : {"const" : 0 },
131
131
"tests" : [
132
132
{
143
143
"description" : " float zero is valid" ,
144
144
"data" : 0.0 ,
145
145
"valid" : true
146
+ },
147
+ {
148
+ "description" : " empty object is invalid" ,
149
+ "data" : {},
150
+ "valid" : false
151
+ },
152
+ {
153
+ "description" : " empty array is invalid" ,
154
+ "data" : [],
155
+ "valid" : false
156
+ },
157
+ {
158
+ "description" : " empty string is invalid" ,
159
+ "data" : " " ,
160
+ "valid" : false
146
161
}
147
162
]
148
163
},
You can’t perform that action at this time.
0 commit comments