OpenAPITools / OpenAPITools/openapi-generator
[BUG] Description
Nobody has claimed this yet.
- 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
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
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