Releases: Fredx87/openapi-io-ts
Releases · Fredx87/openapi-io-ts
@openapi-io-ts/[email protected]
Minor Changes
- #20
bde97b8
Thanks @dcaf-mocha! - fix: add imports for requestBodies and responses
@openapi-io-ts/[email protected]
@openapi-io-ts/[email protected]
@openapi-io-ts/[email protected]
@openapi-io-ts/[email protected]
@openapi-io-ts/[email protected]
@openapi-io-ts/[email protected]
Minor Changes
-
#9
84d6bf1
Thanks @Fredx87! - Changed types of request functions and operations.BREAKING CHANGE
Request functions now have only one parameter: an object containingparams
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:// Before: operation({ id: "abc123" }, { name: "Jonh Doe", age: 35 }); // After: operation({ params: { id: "abc123" }, body: { name: "Jonh Doe", age: 35 } });
@openapi-io-ts/[email protected]
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 singlerequestFunctionsBuilder
function that creates all the request functions.
The generated services builder will now take the object returned by therequestFunctionsBuilder
function instead of anHttpRequestAdapter
.