When calling tp.server.api.invoke with a listi n arguments, the serialization happens in a strange way. List in serialized as a hash map.
tp.server.api.invoke({
name: this._queryApi,
arguments: {
statuses: ['Active', 'Draft']
}
})
In request payload:
{
"statuses":{"0":"Active","1":"Draft"},
...
}
Should be:
{
"statuses":["Active","Draft"],
...
}
When calling tp.server.api.invoke with a listi n arguments, the serialization happens in a strange way. List in serialized as a hash map.
tp.server.api.invoke({
name: this._queryApi,
arguments: {
statuses: ['Active', 'Draft']
}
})
In request payload:
{
"statuses":{"0":"Active","1":"Draft"},
...
}
Should be:
{
"statuses":["Active","Draft"],
...
}