New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to rename requestBody
#2011
Comments
gersongoulart
pushed a commit
to provantagex/openapi-typescript-codegen
that referenced
this issue
Jan 29, 2024
…fault, it will be passed into the generated function as `requestBody`. Accept the commonly used `x-body-name` property in the operation schema to override this name. ferdikoomen#2011
Hey @gersongoulart, I see you have other commits in your fork in addition to this feature, but just wanted to let you know I've also added this feature to our fork. It has some other features too, mostly around OpenAPI 3.1 compatibility |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the OpenAPI v3 spec, the
requestBody
does not have a name. By default, it will be passed into the generated function asrequestBody
.It would be nice to accept the commonly used
x-body-name
property in the operation schema to override this name.Example:
The text was updated successfully, but these errors were encountered: