Implements: allOf, anyOf #11
@@ -36,7 +36,7 @@ class ArrayTypeParser(GenericTypeParser):
|
|||||||
default_mappings={"description": "description"},
|
default_mappings={"description": "description"},
|
||||||
)
|
)
|
||||||
|
|
||||||
default_list = properties.get("default")
|
default_list = properties.pop("default", None)
|
||||||
if default_list is not None:
|
if default_list is not None:
|
||||||
ArrayTypeParser.validate_default(
|
ArrayTypeParser.validate_default(
|
||||||
field_type,
|
field_type,
|
||||||
@@ -53,7 +53,4 @@ class ArrayTypeParser(GenericTypeParser):
|
|||||||
default_list
|
default_list
|
||||||
)
|
)
|
||||||
|
|
||||||
if "default_factory" in mapped_properties and "default" in mapped_properties:
|
|
||||||
del mapped_properties["default"]
|
|
||||||
|
|
||||||
return field_type, mapped_properties
|
return field_type, mapped_properties
|
||||||
|
|||||||
Reference in New Issue
Block a user