Skip to content

v0.4.0

Compare
Choose a tag to compare
@github-actions github-actions released this 20 Feb 19:49
· 26 commits to main since this release
16c0eb2

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 as StrictResponse<{ 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 the query helper methods. Now, providing any query key causes a type error.