singer-io / singer-python

Writes the Singer format from Python
https://singer.io
Apache License 2.0
537 stars 129 forks source link

Allow empty lists in get_standard_metadata #106

Closed dmosorast closed 5 years ago

dmosorast commented 5 years ago

Both table-key-properties and valid-replication-keys have [] as valid values. Since this is falsy, it was skipping the write when either was specified as an empty array.

This PR changes it to an explicit None check to allow empty arrays.