swagger-api / swagger-api/swagger-codegen
swagger-codegen-maven-plugin is not possible to do selective api generation
Open
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Description
Is not possible to configure in the pom the list of api to generate
Swagger-codegen version
2.3.1
Suggest a fix/enhancement
In the class io.swagger.codegen.plugin.CodeGenMojo add parameter apisToGenerate similar to the existing modelsToGenerate and use it on line 411
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 in io.swagger.codegen.plugin.CodeGenMojo and compare the existing modelsToGenerate parameter with the generation call around line 411. Add the analogous apisToGenerate Maven configuration so the pom can specify which APIs to generate; done means selective API generation works for that configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100