swagger-api / swagger-api/swagger-codegen

Addition of AVAILABLE_OPTIONS system property for language selection

Open
#9,682 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 only hiding languages are available to us. With each release there is the potential for new languages that we may potentially want to hide for a number of reasons. As this is the case, we're unable to automatically accept a release version into our stack. Currently we verify what languages are available, update the HIDDEN_OPTIONS property and then push that release into our stack.

By allowing for AVAILABLE_OPTIONS, we would potentially be able to automate that subsequent push (on image release). If we could define only the languages we want to make available, we remove the possibility we may show languages we want to hide for some reason.

If a language was defined as both HIDDEN and AVAILABLE, HIDDEN should take precedence.

Swagger-codegen version

3.0.11

Swagger declaration file content or url

N/A

Command line used for generation

N/A

Steps to reproduce

N/A

Related issues/PRs

https://github.com/swagger-api/swagger-codegen/pull/9686

Suggest a fix/enhancement

N/A

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

Review Swagger Codegen's language-selection and HIDDEN_OPTIONS handling, then compare the proposed behavior with related PR #9686. Define AVAILABLE_OPTIONS so it limits exposed languages while HIDDEN_OPTIONS takes precedence, and verify the image-release automation scenario described in the issue.

Written by the indexing model from the issue text.

Assessment

Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.