Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: sanitize transformation error message to hide record values #221

Merged
merged 11 commits into from
Jan 16, 2025
Prev Previous commit
Next Next commit
Update airbyte_cdk/sources/utils/transform.py
Co-authored-by: Ben Church <ben@airbyte.io>
  • Loading branch information
ChristoGrab and bnchrch authored Jan 15, 2025
commit c97cf85f793a349dd0de8139c7f9ca452ad262fa
6 changes: 1 addition & 5 deletions airbyte_cdk/sources/utils/transform.py
Original file line number Diff line number Diff line change
@@ -253,14 +253,10 @@ def _get_type_structure(self, input_data: Any, current_depth: int = 0) -> Any:
)

if isinstance(input_data, dict):
structure = {
return {
key: self._get_type_structure(field_value, current_depth + 1)
for key, field_value in input_data.items()
}

if current_depth == 0:
return f"object with structure {structure}"
return structure

else:
return python_to_json[type(input_data)]
Loading