NattapongSiri / covid_cb

MIT License
2 stars 1 forks source link

Type return inconsistent with what return from directly call REST API #3

Closed NattapongSiri closed 4 years ago

NattapongSiri commented 4 years ago

WA can return with response type as suggestion and search. These two have incomplete document on some section of response. The implementation in new covid-unified-gateway return data miss some of it property compare to directly call WA REST API.

For example, for suggestion, it miss all output and value for each suggestion object. This is due to document in WA doesn't explicitly state about what type will be in output. There's also a defect on value type definition where it miss one level of indirection.

For search type of response, the issue caused by WA return only generic property. The type defined in here required intents and entities thus it fail to parse. It then return status:400