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
Pass HTTP status code & errcode from CS-API errors (#100)
* Pass HTTP status code & errcode from CS-API errors
* (De)serialize error response details
Allow client widget drivers to serialize Matrix API error responses into
JSON to be received by the requesting widget.
* Override name property of WidgetApiResponseError
* Disable babel's no-invalid-this rule
because Typescript has its own version of that rule
* Increase test coverage
Mock client-side responses to test deserializing them on the widget side
* Increase test coverage some more
* Accept more than just Matrix API error details
As long as the error details payload is extensible, let drivers put more
data in them than just the key for Matrix API error responses.
* Don't make error data payload extensible
as this makes it too easy for drivers to put data in the wrong section.
Still define the payload type as an interface so that it can be
extended in a future version of the API.
Also don't use a subfield now that non-extensibility makes the format of
the details fields unambiguous.
* Set some missing fields in test
* Test sendToDevice in ClientWidgetApi
* Test navigation in ClientWidgetApi
* Add missing license year
0 commit comments