We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1eb5c7f commit 026f41bCopy full SHA for 026f41b
cloudquery/sdk/transformers/openapi.py
@@ -2,6 +2,7 @@
2
import pyarrow as pa
3
from cloudquery.sdk.schema import Column
4
5
+
6
def oapi_type_to_arrow_type(field) -> pa.DataType:
7
oapi_type = field.get("type")
8
if oapi_type == "string":
@@ -13,8 +14,11 @@ def oapi_type_to_arrow_type(field) -> pa.DataType:
13
14
else:
15
return pa.string()
16
17
18
def oapi_properties_to_columns(properties: Dict) -> List[Column]:
19
columns = []
20
for key, value in properties.items():
- columns.append(Column(name=key, type=value, description=value.get("description")))
- return columns
21
+ columns.append(
22
+ Column(name=key, type=value, description=value.get("description"))
23
+ )
24
+ return columns
0 commit comments