Skip to content

Commit

Permalink
refactor: remove unneeded array handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristoGrab committed Jan 15, 2025
1 parent 427423e commit d982ffe
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions airbyte_cdk/sources/utils/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,12 +231,6 @@ def _get_type_structure(input_data: Any) -> Any:
key: _get_type_structure(field_value) for key, field_value in input_data.items()
}
return f"object with structure {structure}"
elif isinstance(input_data, list):
if not input_data:
# Handle empty array
return "array"
items = [_get_type_structure(item) for item in input_data]
return f"array with structure {items}"
else:
return python_to_json[type(input_data)]

Expand Down

0 comments on commit d982ffe

Please sign in to comment.