Skip to content

Commit 7e2a6bc

Browse files
committed
Dead.
1 parent 8637c1f commit 7e2a6bc

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

jsonschema/_validators.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ def items(validator, items, instance, schema):
7979
if not validator.is_type(instance, "array"):
8080
return
8181

82+
# FIXME
8283
if items is True:
8384
items = {}
8485
elif items is False:
@@ -276,6 +277,7 @@ def dependencies(validator, dependencies, instance, schema):
276277
if property not in instance:
277278
continue
278279

280+
# FIXME
279281
if dependency is True:
280282
dependency = {}
281283
elif dependency is False:
@@ -432,10 +434,6 @@ def allOf_draft4(validator, allOf, instance, schema):
432434

433435
def allOf(validator, allOf, instance, schema):
434436
for index, subschema in enumerate(allOf):
435-
if subschema is True: # FIXME: Messages
436-
subschema = {}
437-
elif subschema is False:
438-
subschema = {"not": {}}
439437
for error in validator.descend(instance, subschema, schema_path=index):
440438
yield error
441439

@@ -481,10 +479,6 @@ def anyOf_draft4(validator, anyOf, instance, schema):
481479
def anyOf(validator, anyOf, instance, schema):
482480
all_errors = []
483481
for index, subschema in enumerate(anyOf):
484-
if subschema is True: # FIXME: Messages
485-
subschema = {}
486-
elif subschema is False:
487-
subschema = {"not": {}}
488482
errs = list(validator.descend(instance, subschema, schema_path=index))
489483
if not errs:
490484
break
@@ -500,10 +494,6 @@ def oneOf(validator, oneOf, instance, schema):
500494
subschemas = enumerate(oneOf)
501495
all_errors = []
502496
for index, subschema in subschemas:
503-
if subschema is True: # FIXME: Messages
504-
subschema = {}
505-
elif subschema is False:
506-
subschema = {"not": {}}
507497
errs = list(validator.descend(instance, subschema, schema_path=index))
508498
if not errs:
509499
first_valid = subschema

0 commit comments

Comments
 (0)