Skip to content

Commit 93966e6

Browse files
committed
Fix not null schema
1 parent 17f44e9 commit 93966e6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jsonsubschema/_checkers.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,8 @@ def _isNullSubtype(self, s2):
823823

824824
@staticmethod
825825
def neg(s):
826-
return None
826+
return boolToConstructor.get("anyOf")(
827+
{"anyOf": get_default_types_except("null")})
827828

828829

829830
class JSONTypeArray(JSONschema):

0 commit comments

Comments
 (0)