OpenAPITools / OpenAPITools/openapi-generator
[REQ] how to rename ApiClient.java file name,eg:MyClient.java
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
When I was building the sdk with openapi-generator, the file name of the generated ApiClient class was ApiClient.java. I wanted to change it to MyClient.java, but found that in the ApiClient.mustache template, only the class name could be modified, not the java file name. Could you please tell me where I can make the modification?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the ApiClient.mustache template and trace how OpenAPI Generator turns it into ApiClient.java. Check where the generated class name and file name are determined, then verify whether a configurable client filename can be supported without breaking existing Java SDK generation. Done means the requested MyClient.java output is possible and covered by an appropriate generator test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100