swagger-api / swagger-api/swagger-codegen

swagger-codegen-maven-plugin is not possible to do selective api generation

Open
#8,128 2 comments 2 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.