singer-io / singer-python

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

Schema fails to be turned into dictionary if it contains "anyOf" #117

Open judahrand opened 4 years ago

judahrand commented 4 years ago

I would except the anyOf property of a Schema object to be a list of Schema objects, however, as you can currently see the Schema.to_dict() function does not deal with this case!

This means that singer.catalog.write_catalog() fails.