swagger-api / swagger-api/swagger-codegen

Only Generates first in list of Apis or Models

Open
#9,555 6 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

I run generate code with -Dapis=api1,api2,api3 as per https://github.com/swagger-api/swagger-codegen#selective-generation but only api1 will be generated but I'd expect all three to be created. The same happens with -Dmodels=model1,model2 will only generate model1.

Swagger-codegen version

2.4.4

Command line used for generation

java -jar "swagger-codegen-cli-2.4.4.jar" generate -i swagger.json -l csharp -Dapis=api1,api2,api3

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 with the generate CLI entry point and reproduce the issue using the documented -Dapis=api1,api2,api3 and -Dmodels=model1,model2 options against the supplied swagger.json and C# generator. Done means every comma-separated API or model name is generated, rather than only the first item.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, java
Domain
cli, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.