Better Tests and Array Implementation

This commit is contained in:
2025-03-28 02:26:17 -03:00
parent f872cbee0b
commit 55a7162c68
2 changed files with 40 additions and 8 deletions

View File

@@ -12,10 +12,8 @@ class ArrayTypeParser(GenericTypeParser):
@classmethod
def from_properties(cls, name, properties):
_item_type = properties["items"]["type"]
if _item_type == "object":
_item_type = type
else:
_item_type = GenericTypeParser.get_impl(_item_type).mapped_type
_item_type, _item_args = GenericTypeParser.get_impl(
properties["items"]["type"]
).from_properties(name, properties["items"])
return list[_item_type], {}