mirror of
https://github.com/kennethreitz/pydantic.git
synced 2026-06-05 23:00:18 +00:00
fix for typed arrays
This commit is contained in:
@@ -97,9 +97,10 @@ def get_schema_property_json(field_name: str, inner_schema_field: Dict[str, Any]
|
||||
# If only one type was found, shorten it (not an array).
|
||||
properties['type'] = types[0] if len(types) == 1 else types
|
||||
|
||||
print(inner_schema_field)
|
||||
# Include typed array support.
|
||||
if items:
|
||||
properties['items'] = items
|
||||
properties['items'] = {'type': items}
|
||||
|
||||
return properties
|
||||
|
||||
|
||||
Reference in New Issue
Block a user