File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -364,20 +364,22 @@ def test_cannot_generate_for_empty_test_suite_schema(name):
364
364
# merged or otherwise handled correctly, with the exception of the key "ab" which
365
365
# would have to be both an integer and a string (and is thus disallowed).
366
366
OVERLAPPING_PATTERNS_SCHEMA = {
367
- "type" : "string " ,
367
+ "type" : "object " ,
368
368
"patternProperties" : {
369
369
r"\A[ab]{1,2}\Z" : {},
370
370
r"\Aa[ab]\Z" : {"type" : "integer" },
371
371
r"\A[ab]b\Z" : {"type" : "string" },
372
372
},
373
373
"additionalProperties" : False ,
374
- "minimumProperties " : 1 ,
374
+ "minProperties " : 1 ,
375
375
}
376
376
377
377
378
378
@given (from_schema (OVERLAPPING_PATTERNS_SCHEMA ))
379
379
def test_handles_overlapping_patternproperties (value ):
380
380
jsonschema .validate (value , OVERLAPPING_PATTERNS_SCHEMA )
381
+ assert isinstance (value , dict )
382
+ assert len (value ) >= 1
381
383
assert "ab" not in value
382
384
383
385
You can’t perform that action at this time.
0 commit comments