How can i configure flattening using `tap-rest-api...
# troubleshooting
g
How can i configure flattening using
tap-rest-api-msdk
. My API response is an array of object...
{
"id": "1",
"a": 0,
"b": "0",
"c": {
"d": *true*
}
}
After loading data using
target-jsonl
,
d
is not saved and
c
is null.
{"id": "1", "a": 0, "b": "0", "c": null}
Inferred Schema
"schema": {
"properties": {
"id": {
"type": "string"
},
"a": {
"type": "integer"
},
"b": {
"type": "string"
},
"c": {
"type": "null"
}
},
"type": "object",
"required": [
"a",
"c",
"b",
"id"
]
},
e
You could try increasing
num_inference_records
or passing a custom
schema
to make it so
Copy code
"c": {
  "type": "object",
  "properties": {...}
}
at that point you can start thinking about flattening
g
I am using default ``num_inference_records = 50`` . My test data has only
3
records.
Can I specify a portion of schema? Only one property, for example. Or should I pass the complete schema?
It works. I was requesting API without auhtentication. In this case, it returns
null
for field
c
. With authentication,
c.d
is returned and schema is correctly infered.
👍 1