Accept the commonly used `x-body-name` property in the operation schema to override this name. by gersongoulart · Pull Request #2012 · ferdikoomen/openapi-typescript-codegen

Conversation

@gersongoulart

In the OpenAPI v3 spec, the requestBody does not have a name. By default, 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. #2011

…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

@gersongoulart gersongoulart changed the title Accept the commonly used x-body-name property in the operation schema to override this name. #2011 Accept the commonly used x-body-name property in the operation schema to override this name.

Jan 29, 2024

1 participant

@gersongoulart