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
* added --unwrap-response-data to unwrap the data item from the response (#268)
* added --unwrap-response-data to unwrap the data item from the response
* add axios --unwrap-response-data
Co-authored-by: Christian Zangl <[email protected]>
* fix: formdata in axios template (#277)
Co-authored-by: Tiago Kaneta <[email protected]>
* Feature: add full response typing for status code, data and headers. (#272)
This commit adds additional type information to the route's response
object that allows types to be created that express the combination
of status code, data and headers for each response.
This type information can be used to "narrow" a response type based on
an HTTP status code. This narrowing is useful since it can prevent type
mismatches where a status code is presumed to have one type but in actuality
it returns another.
Additionally, response headers are now associated with data types and status
codes rather than being free form.
A caveat right now is that only there are no response codes like 3XX or
5XX, every code must be explicitly listed.
* bump: up version to 9.2.0
Co-authored-by: Christian Zangl <[email protected]>
Co-authored-by: Christian Zangl <[email protected]>
Co-authored-by: Tiago Surjus Kaneta <[email protected]>
Co-authored-by: Tiago Kaneta <[email protected]>
Co-authored-by: Rusty Conover <[email protected]>
0 commit comments