You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When setting "flattening_enabled" : true, record property values of array ([]), are turned to strings ("[]"), but the schema still lists the property as "type" : ["null", "array"], causing an error when this hits a meltano sdk target of:
jsonschema.exceptions.ValidationError: '[]' is not of type 'null', 'array'
Failed validating 'type' in schema['properties']['<property name>']:
{'items': {}, 'type': ['null', 'array']}
On instance['<property name>']:
'[]'
Code
No response
The text was updated successfully, but these errors were encountered:
I hit this today whilst working on making target tests pass and didn't have time to investigate further. Couldn't find in the docs what the expected behaviour is, but we do have a separate config bool called flatten_arrays that I think defaults to True that might have something to do with it. In any case, the mismatch to the schema points to a bug 🐛
Singer SDK Version
0.14.0
Python Version
3.10
Bug scope
Taps (catalog, state, stream maps, etc.)
Operating System
Linux
Description
When setting
"flattening_enabled" : true
, record property values of array ([]
), are turned to strings ("[]"
), but the schema still lists the property as"type" : ["null", "array"]
, causing an error when this hits a meltano sdk target of:Code
No response
The text was updated successfully, but these errors were encountered: