You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, when we encounter an array type and when trying to access the subtype by doing items.get('type') it throws as the postgres-tapoutputs theitemswith a json $ref pointer which can be found in the catalogues definitions. eg we expectitems[{ type: 'string' }]but actually receiveitems[{ $ref: }]`
I'd expect that singer's message parsing function would use jsonref or a similar to load the references for the target. Unless you can think of a reason not to do that I'll open an issue on the core singer lib and link back to this.
In the meantime, we could look for a $ref and resolve it our selves. Although this approach is probably error-prone.
The text was updated successfully, but these errors were encountered:
craigmulligan
changed the title
Array type doesn't follow find json $ref type
Array type doesn't find json $ref type
Aug 7, 2019
craigmulligan
changed the title
Array type doesn't find json $ref type
Array type doesn't find json $ref pointers
Aug 7, 2019
herregroen
pushed a commit
to Yoast/target-bigquery
that referenced
this issue
Feb 17, 2021
Currently, when we encounter an
array
type and when trying to access the subtype by doingitems.get('type') it throws as the
postgres-tapoutputs the
itemswith a json $ref pointer which can be found in the catalogues definitions. eg we expect
items[{ type: 'string' }]but actually receive
items[{ $ref: }]`I'd expect that singer's message parsing function would use
jsonref
or a similar to load the references for the target. Unless you can think of a reason not to do that I'll open an issue on the core singer lib and link back to this.In the meantime, we could look for a
$ref
and resolve it our selves. Although this approach is probably error-prone.The text was updated successfully, but these errors were encountered: