v0.4.0
Minor Changes
-
#42
c466bbc
Thanks @christoph-fricke! - Changed response body types to be a union of all response bodies for all status codes and media types. This makes it possible to return responses for specified error codes without requiring a type cast. Imagine the following endpoint. Its response body is now typed asStrictResponse<{ id: string, value: number } | string | null>
./resource: get: summary: Get Resource operationId: getResource responses: 200: description: Success content: application/json: schema: type: object required: [id, value] properties: id: type: string value: type: integer 202: description: Accepted content: text/plain: schema: type: string 418: description: NoContent
Patch Changes
- #44
a9338b5
Thanks @christoph-fricke! - Fixed endpoints with no specified query params allow any query key in thequery
helper methods. Now, providing any query key causes a type error.