swagger-api / swagger-api/swagger-codegen
Only Generates first in list of Apis or Models
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
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 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