Skip to content

Commit d982ffe

Browse files
committed
refactor: remove unneeded array handling
1 parent 427423e commit d982ffe

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

airbyte_cdk/sources/utils/transform.py

-6
Original file line numberDiff line numberDiff line change
@@ -231,12 +231,6 @@ def _get_type_structure(input_data: Any) -> Any:
231231
key: _get_type_structure(field_value) for key, field_value in input_data.items()
232232
}
233233
return f"object with structure {structure}"
234-
elif isinstance(input_data, list):
235-
if not input_data:
236-
# Handle empty array
237-
return "array"
238-
items = [_get_type_structure(item) for item in input_data]
239-
return f"array with structure {items}"
240234
else:
241235
return python_to_json[type(input_data)]
242236

0 commit comments

Comments
 (0)