Closed jtimeus-slalom closed 3 years ago
Attached is a anonymized jsonl (change extension from txt to jsonl) that can be passed to target-csv to generate the error
cat .\Activity.txt | target-csv
Hi, John. Thanks very much. I actually found the issue quickly. The problem is there are two specs for "required" in different versions of JSON Schema. As of Draft 4 (which is what we are using and which most other versions use), the "required" property is defined at the object (complex-type) level, and it contains a list of required attributes. Specification text here: https://tools.ietf.org/html/draft-fge-json-schema-validation-00#page-12
Previously, we were also appending "required": true
which was conflicting with that spec.
The latest update (poetry add singer-sdk==0.0.2-dev.1068113915
) should resolve the issue, but please let me know once you've confirmed. Thanks!
Also, for reference, here's the relevant commit diff: https://gitlab.com/meltano/singer-sdk/-/commit/c7b70eb3ac5becd379f85dd662c30441f1913470 I simply removed the addl. boolean flag in favor of the list-based approached which was already implemented.
Confirmed fixed, thanks!
Whenever I use the ComplexType and then pipe the activity to target-csv I get a
TypeError: 'bool' object is not iterable
error