OpenAPITools / OpenAPITools/openapi-generator

servers tag in openapi

Open
#5,620 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Client: JavaScript/Node.js Hacktoberfest help wanted Issue: Bug
Dominant language
Java
Stars
26.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

There is an object 'servers' in openapi to specify environments. if there are more than one servers(like dev and prod) and need to know which server is selected at run time in nodejs code then how can it be achieved?

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

No files or tests are named. Start by reviewing how generated Node.js clients represent OpenAPI servers and select an environment at runtime; determine whether the expected outcome is usage guidance or a generator change. Done means the runtime selection behavior is clearly defined and documented or covered by an appropriate test.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, openapi
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.