swagger-api / swagger-api/swagger-codegen

Please add an ability to generate models and API client classes from several inputSpecs in swagger-codegen-plugin

Open
#10,235 0 comments 0 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

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.