Till Blesik
12/22/2022, 3:13 PM{ meta: {}, status: {}, models:{}}
For /workspaces it is
{ meta: {}, status: {}, eirkspaces:{}}
And for another type of endpoints with tabular data it is
{pages: {}, columnCoordinates: {}, rows: {}
How can I account for different response structures per stream? Can I specify a record selector per stream?
Thank you for your help!Nataly Merezhuk (Airbyte)
12/22/2022, 4:05 PMTill Blesik
12/22/2022, 4:34 PMTill Blesik
12/22/2022, 4:38 PM{
"type": "object",
"required": ["workspaces"],
"properties": {
"workspaces": {
"type": "array",
"items": {
"type": "object",
"required": ["id", "name"],
"properties": {
"id": { type": "string" },
"name": { "type": "string" },
<...>
}
}
}
}
}
and this configuration:
workspaces_stream:
$ref: "*ref(definitions.base_stream)"
$options:
name: "workspaces"
primary_key: "id"
path: "/workspaces"
I get the error thas “id” is not available as PKTill Blesik
12/22/2022, 9:32 PMdefinitions:
selector:
extractor:
field_pointer: [ "{{ options.extractor_field_pointer }}" ]
<...>
workspaces_stream:
$ref: "*ref(definitions.base_stream)"
$options:
name: "workspaces"
extractor_field_pointer: "workspaces"
primary_key: "id"
path: "/workspaces"
and then the schemas in a way that assume the field_pointer to be the “root”.
Please let me know if there is a smarter / best practice way.Nataly Merezhuk (Airbyte)
12/23/2022, 2:37 PM