swagger-api / swagger-api/swagger-codegen
Please add an ability to generate models and API client classes from several inputSpecs in swagger-codegen-plugin
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Description
Currently it is possible to generate an API client and models from a single swagger.json or yaml only and sometimes it causes an issues like generation from several sources and copy-paste into the project.
So, please add a support for an array of inputSpecs in tag.
Let it be an array not a single String.
Swagger-codegen version
N/A
Swagger declaration file content or url
N/A
Command line used for generation
N/A
Steps to reproduce
N/A
Related issues/PRs
N/A
Suggest a fix/enhancement
Add a support for an array of inputSpecs in tag.
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 the swagger-codegen-plugin configuration where inputSpecs is currently represented as a single value, and trace how it is passed to generation for swagger.json or YAML inputs. Update the behavior to accept an array and verify that models and API client classes can be generated from several input specifications without copy-paste.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- openapi
- Domain
- api, tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100