OpenAPITools / OpenAPITools/openapi-generator

[BUG] Description

Open
#8,914 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue: Bug
Dominant language
Java
Stars
26.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

Hey!
When writing the specification in the path section, I replace the server parameters like this:

[MY ROUTE]:
       get:
         summary: Get a movie poster.
         servers:
             - url: https://image.tmdb.org
             description: Server address for storing images.
        parameters:
        # ...

In Swagger Editor this works great, but from the generated when for swift 5 I still communicate [Swift Pakage Name].DefaulAPI.[Metod for MY ROUTE] and get to the base address the server specified in servers: Is this a bug or am I addressing it incorrectly?

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

Reproduce the OpenAPI path-level servers example in Swagger Editor and with a generated Swift 5 client. Compare the generated client's request base address for the route with the server URL, then determine whether the override is supported or whether the behavior needs clarification or a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi, swift
Domain
api, mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.