This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@openapi-io-ts/cli@0.2.0
Minor Changes
#984d6bf1 Thanks @Fredx87! - Changes in codegen for generating new request functions for runtime.
BREAKING CHANGE
The generated code will not have single request function anymore, but a single requestFunctionsBuilder function that creates all the request functions.
The generated services builder will now take the object returned by the requestFunctionsBuilder function instead of an HttpRequestAdapter.
Patch Changes
#11355b111 Thanks @Fredx87! - Fixed a typo in response component generation
@openapi-io-ts/runtime@0.2.0
Minor Changes
#984d6bf1 Thanks @Fredx87! - Changed types of request functions and operations.
BREAKING CHANGE
Request functions now have only one parameter: an object containing params and body (they can be optional if the operation
does not have parameters or body).
Example of operation with { id: string } params and {name: string; age: number } body:
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@openapi-io-ts/cli@0.2.0
Minor Changes
#9
84d6bf1
Thanks @Fredx87! - Changes in codegen for generating new request functions for runtime.BREAKING CHANGE The generated code will not have single request function anymore, but a single
requestFunctionsBuilder
function that creates all the request functions. The generated services builder will now take the object returned by therequestFunctionsBuilder
function instead of anHttpRequestAdapter
.Patch Changes
#11
355b111
Thanks @Fredx87! - Fixed a typo in response component generation@openapi-io-ts/runtime@0.2.0
Minor Changes
#9
84d6bf1
Thanks @Fredx87! - Changed types of request functions and operations.BREAKING CHANGE Request functions now have only one parameter: an object containing
params
andbody
(they can be optional if the operation does not have parameters or body).Example of operation with
{ id: string }
params and{name: string; age: number }
body:@openapi-io-ts/example-react-query-petstore@0.1.1
Patch Changes
84d6bf1
]: