Open MBGIV opened 3 years ago
Actually, the spec has to be downloaded and adapted locally as described here https://community.atlassian.com/t5/Jira-articles/Generating-a-REST-client-for-Jira-Cloud/ba-p/1307133 in section Making swagger-codegen happy.
I proceeded to adapt the spec and validated it using https://apitools.dev/swagger-parser/online/, which confirmed the spec to be valid.
Description
The behaviour leads to compile errors because of the file name / class name mismatch. The issue unveiled when trying to generate the code for the jira rest client.
openapi-generator version
5.0.1 (openapi-generator-maven-plugin)
OpenAPI declaration file content or url
Below the execution configuration of the maven plugin:
Command line used for generation
See execution definition above.
Steps to reproduce
Add above execution definiton to any maven java project using openapi-generator. Run commands maven clean, maven install.
Related issues/PRs
https://github.com/OpenAPITools/openapi-generator/issues/3428 https://github.com/OpenAPITools/openapi-generator/issues/1692
Suggest a fix/enhancement
Define separate rule to handle the (sub)string "ID". Classes must not be renamed.