In the OpenAPI v3 spec, the `requestBody` does not have a name. By default, [it will be passed into the generated function](https://github.com/ferdikoomen/openapi-typescript-codegen/blob/master/src/openApi/v3/parser/getOperationRequestBody.ts#L14) as `requestBody`. It would be nice to accept the [commonly used `x-body-name` property in the operation schema](https://connexion.readthedocs.io/en/latest/request.html#body) to override this name. Example: ``` paths: /foo: post: operationId: api.foo_get requestBody: x-body-name: payload content: application/json: schema: ... ``` ``` # default body: requestBody, # based on x-body-name body: payload, ```
In the OpenAPI v3 spec, the
requestBodydoes 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-nameproperty in the operation schema to override this name.Example: