@@ -79,6 +79,7 @@ def items(validator, items, instance, schema):
79
79
if not validator .is_type (instance , "array" ):
80
80
return
81
81
82
+ # FIXME
82
83
if items is True :
83
84
items = {}
84
85
elif items is False :
@@ -276,6 +277,7 @@ def dependencies(validator, dependencies, instance, schema):
276
277
if property not in instance :
277
278
continue
278
279
280
+ # FIXME
279
281
if dependency is True :
280
282
dependency = {}
281
283
elif dependency is False :
@@ -432,10 +434,6 @@ def allOf_draft4(validator, allOf, instance, schema):
432
434
433
435
def allOf (validator , allOf , instance , schema ):
434
436
for index , subschema in enumerate (allOf ):
435
- if subschema is True : # FIXME: Messages
436
- subschema = {}
437
- elif subschema is False :
438
- subschema = {"not" : {}}
439
437
for error in validator .descend (instance , subschema , schema_path = index ):
440
438
yield error
441
439
@@ -481,10 +479,6 @@ def anyOf_draft4(validator, anyOf, instance, schema):
481
479
def anyOf (validator , anyOf , instance , schema ):
482
480
all_errors = []
483
481
for index , subschema in enumerate (anyOf ):
484
- if subschema is True : # FIXME: Messages
485
- subschema = {}
486
- elif subschema is False :
487
- subschema = {"not" : {}}
488
482
errs = list (validator .descend (instance , subschema , schema_path = index ))
489
483
if not errs :
490
484
break
@@ -500,10 +494,6 @@ def oneOf(validator, oneOf, instance, schema):
500
494
subschemas = enumerate (oneOf )
501
495
all_errors = []
502
496
for index , subschema in subschemas :
503
- if subschema is True : # FIXME: Messages
504
- subschema = {}
505
- elif subschema is False :
506
- subschema = {"not" : {}}
507
497
errs = list (validator .descend (instance , subschema , schema_path = index ))
508
498
if not errs :
509
499
first_valid = subschema
0 commit comments