Skip to content

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 28 Oct 10:10
· 60 commits to main since this release
Immutable release. Only release title and notes can be modified.
d27d883

Changed

  • Breaking: The generator computes which statuses each response key covers, instead of conditional types at every call, so calls type-check faster. ApiResponse takes the operation instead of its responses: ApiResponse<paths["/pets/{petId}"]["GET"]>. Each operation in paths has a statuses member. (#39)

Fixed

  • Breaking: A multipart body was sent with the Content-Type set in the client's or the call's headers, without a boundary, so the server could not parse it. fetch now sets the header, boundary included. Header objects can no longer name Content-Type, since the body's media type sets it; to send a body for a range such as */* as a given media type, pass contentType. (#41)