Skip to content

Commit 026f41b

Browse files
committed
fmt
1 parent 1eb5c7f commit 026f41b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

cloudquery/sdk/transformers/openapi.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import pyarrow as pa
33
from cloudquery.sdk.schema import Column
44

5+
56
def oapi_type_to_arrow_type(field) -> pa.DataType:
67
oapi_type = field.get("type")
78
if oapi_type == "string":
@@ -13,8 +14,11 @@ def oapi_type_to_arrow_type(field) -> pa.DataType:
1314
else:
1415
return pa.string()
1516

17+
1618
def oapi_properties_to_columns(properties: Dict) -> List[Column]:
1719
columns = []
1820
for key, value in properties.items():
19-
columns.append(Column(name=key, type=value, description=value.get("description")))
20-
return columns
21+
columns.append(
22+
Column(name=key, type=value, description=value.get("description"))
23+
)
24+
return columns

0 commit comments

Comments
 (0)