Update from upstream #11
@ -450,9 +450,9 @@ def _extend_with_default_and_alias(validator_class, offline=False):
|
||||
def is_string_type(checker, instance):
|
||||
return isinstance(instance, six.string_types)
|
||||
|
||||
type_checker = validator_class.TYPE_CHECKER.redefine_many(
|
||||
{"array": is_array, "regex": is_string_type, "url": is_string_type}
|
||||
)
|
||||
# type_checker = draft4_type_checker.redefine_many(
|
||||
# {"array": is_array, "regex": is_string_type, "url": is_string_type}
|
||||
# )
|
||||
|
||||
return jsonschema.validators.extend(
|
||||
validator_class,
|
||||
@ -464,7 +464,7 @@ def _extend_with_default_and_alias(validator_class, offline=False):
|
||||
"additionalProperties": _validate_additional_properties,
|
||||
"anyOf": _validate_any_of,
|
||||
},
|
||||
type_checker=type_checker,
|
||||
# type_checker=type_checker,
|
||||
)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user