Skip to content

Commit 847e902

Browse files
committed
Treat empty object schemas as 'any'
1 parent 28ddc23 commit 847e902

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

singer/transform.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,10 @@ def _transform_object(self, data, schema, path):
169169
if not isinstance(data, dict):
170170
return False, data
171171

172+
# Don't touch an empty schema
173+
if schema == {}:
174+
return True, data
175+
172176
result = {}
173177
successes = []
174178
for key, value in data.items():

0 commit comments

Comments
 (0)