Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with multiple servers in swagger file #62

Open
sukanya-ramakrishnan opened this issue Jun 3, 2021 · 1 comment
Open

Issues with multiple servers in swagger file #62

sukanya-ramakrishnan opened this issue Jun 3, 2021 · 1 comment

Comments

@sukanya-ramakrishnan
Copy link

I have a swagger file with multiple servers in the file(came across such a file accidentally).
The swagger UI is rendered with a select in this case on my web page.
But the results got from openApiSnippets seems to default to the first server only always.
I can work around it by changing the json object sent to openapisnippets everytime when the selection of server is changed, but can this be fixed at the openapi-snippets project level please ?

@ErikWittern
Copy link
Owner

@sukanya-ramakrishnan Thanks for filing the issue. This library at the moment does indeed arbitrarily chose the first server.

I think exposing an option to select which server to use may require a larger API change, see #64.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants