singer-io / singer-tap-template

GNU Affero General Public License v3.0
68 stars 32 forks source link

Update __init__.py #16

Open frasermarlow opened 3 years ago

frasermarlow commented 3 years ago

This is actually a duplication of https://github.com/singer-io/singer-tap-template/pull/12

Description of change

Without the addition of to_dict() on l66 ( schema=stream.schema.to_dict(), ) the tap will return the error "TypeError: Object of type 'Schema' is not JSON serializable" Also documented by three people on Slack here: https://singer-io.slack.com/archives/C2TGFCZEV/p1584891258008800

Manual QA steps

Rerun the schema in cookiecutter tap template.

Rollback steps