Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristoGrab committed Jan 15, 2025
1 parent 7111c1a commit 427423e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions airbyte_cdk/sources/utils/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,9 @@ def transform(
def get_error_message(self, e: ValidationError) -> str:
def _get_type_structure(input_data: Any) -> Any:
if isinstance(input_data, dict):
structure = {key: _get_type_structure(field_value) for key, field_value in input_data.items()}
structure = {
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:
Expand All @@ -240,5 +242,5 @@ def _get_type_structure(input_data: Any) -> Any:

field_path = ".".join(map(str, e.path))
type_structure = _get_type_structure(e.instance)

return f"Failed to transform value from type '{type_structure}' to type '{e.validator_value}' at path: '{field_path}'"

0 comments on commit 427423e

Please sign in to comment.