Closed epidemia closed 1 month ago
Hello,
This might be related. When using external $ref on requestBody, e.g.
/contracts/{id}/sign/{tokenId}:
put:
tags:
- Contracts
description: Update a contract signature as anonymous user
operationId: updateAsAnonymous
parameters:
- name: id
in: path
description: ID of the contract to update
required: true
schema:
type: string
format: uuid
- name: tokenId
description: the token ID
in: path
required: true
schema:
type: string
format: uuid
requestBody:
description: The signature file for the beneficiary
required: true
content:
application/json:
schema:
$ref: './whp-common.yaml#/components/schemas/AdditionalFileDTO'
the generated Type name for the body looks like this:
and does not exist in the generated file
Bug Report Checklist
Description
Request body name from x-codegen-request-body-name is ignored for composed schema.
openapi-generator version
5.1.1
OpenAPI declaration file content or url
Generation Details
openapi-generator-maven-plugin:5.1.1
Expected request param name: body Actual request param name: firstSecondThird
Steps to reproduce
Use the openapi-generator-maven-plugin and typescript-axios template
Related issues/PRs
Suggest a fix