Skip to content

Commit c97cf85

Browse files
ChristoGrabbnchrch
andauthored
Update airbyte_cdk/sources/utils/transform.py
Co-authored-by: Ben Church <ben@airbyte.io>
1 parent f90e61a commit c97cf85

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

airbyte_cdk/sources/utils/transform.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -253,14 +253,10 @@ def _get_type_structure(self, input_data: Any, current_depth: int = 0) -> Any:
253253
)
254254

255255
if isinstance(input_data, dict):
256-
structure = {
256+
return {
257257
key: self._get_type_structure(field_value, current_depth + 1)
258258
for key, field_value in input_data.items()
259259
}
260260

261-
if current_depth == 0:
262-
return f"object with structure {structure}"
263-
return structure
264-
265261
else:
266262
return python_to_json[type(input_data)]

0 commit comments

Comments
 (0)