hassan_syyid
09/02/2021, 5:43 PMcatalog.json
in this discover method? https://github.com/hotgluexyz/tap-airtable/blob/master/tap_airtable/services/__init__.py#L41
For context, this is a fork of a pre-existing Airtable tap that I’m trying to fix up. Right now, the output looks like below – which does not follow Singer standard format (specifically, the metadata entry should be an array):
{
"streams": [
{
"table_name": "ContactLists",
"stream": "ContactLists",
"metadata": {
"selected": false,
"name": "ContactLists",
"properties": {
"id": {
"type": [
"null",
"string"
],
"key": true
},
"parentId": {
"type": [
"null",
"string"
]
},
...
edgar_ramirez_mondragon
09/02/2021, 6:06 PMbase
is a dictionary and you're passing it to the constructor of CatalogEntry
but that doesn't validate its inputs so when it does to_dict
, it just uses that dict. Try making it an array instead:
base = [{"selected": args.config['selected_by_default'],
"name": table_name,
"properties": columns}]
hassan_syyid
09/02/2021, 7:16 PMbreadcrumbs
entry as well