File tree Expand file tree Collapse file tree 1 file changed +68
-2
lines changed
tests/JsonSchema/Tests/Constraints Expand file tree Collapse file tree 1 file changed +68
-2
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,40 @@ public function getInvalidTests()
144
144
"null":{"type":"null", "required": true}
145
145
}
146
146
} '
147
- )
147
+ ),
148
+ array (
149
+ '{
150
+ "foo": {"baz": 1.5}
151
+ } ' ,
152
+ '{
153
+ "type": "object",
154
+ "properties": {
155
+ "foo": {
156
+ "type": "object",
157
+ "properties": {
158
+ "bar": {"type": "number"}
159
+ },
160
+ "required": ["bar"]
161
+ }
162
+ }
163
+ } '
164
+ ),
165
+ array (
166
+ '{
167
+ "foo": {"baz": 1.5}
168
+ } ' ,
169
+ '{
170
+ "type": "object",
171
+ "properties": {
172
+ "foo": {
173
+ "type": "object",
174
+ "properties": {
175
+ "bar": {"type": "number", "required": true}
176
+ }
177
+ }
178
+ }
179
+ } '
180
+ ),
148
181
);
149
182
}
150
183
@@ -266,7 +299,40 @@ public function getValidTests()
266
299
"foo": { "required": true }
267
300
}
268
301
} '
269
- )
302
+ ),
303
+ array (
304
+ '{
305
+ "boo": {"bar": 1.5}
306
+ } ' ,
307
+ '{
308
+ "type": "object",
309
+ "properties": {
310
+ "foo": {
311
+ "type": "object",
312
+ "properties": {
313
+ "bar": {"type": "number"}
314
+ },
315
+ "required": ["bar"]
316
+ }
317
+ }
318
+ } '
319
+ ),
320
+ array (
321
+ '{
322
+ "boo": {"bar": 1.5}
323
+ } ' ,
324
+ '{
325
+ "type": "object",
326
+ "properties": {
327
+ "foo": {
328
+ "type": "object",
329
+ "properties": {
330
+ "bar": {"type": "number", "required": true}
331
+ }
332
+ }
333
+ }
334
+ } '
335
+ ),
270
336
);
271
337
}
272
338
}
You can’t perform that action at this time.
0 commit comments