fix for typed arrays

This commit is contained in:
=
2023-01-19 09:29:16 -05:00
parent ffdfc6fef8
commit bd72e0d574
+2 -1
View File
@@ -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