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

operation level server override option always appears for OAS 3.1 specification #9947

Open
aharin opened this issue May 20, 2024 · 2 comments

Comments

@aharin
Copy link

aharin commented May 20, 2024

This option seem to appear for OAS 3.1 documents when servers are not specified globally. Although servers are not specified on operation level either, swagger-ui defaults to '/' and always displays the override.

hxem3

@char0n
Copy link
Member

char0n commented May 23, 2024

Hi @aharin,

It's related to the fact that OpenAPI 3.1.0 resolution is facilitated by ApiDOM which utilizes (currently) full duplication and normalization algorithms. I can imagine this is not warranted for the SwaggerUI usecase. SO we'll review the normalization for OpenAPI 3.1.0 in foreseeable future.

@dzanot
Copy link

dzanot commented May 30, 2024

@aharin my team just saw this when navigating directly to the url of an expanded endpoint. It was preventing us from sending requests via the doc. A workaround that worked for me: navigate to the root (delete stuff after #) and hard refresh your browser, the dropdown should be absent after expanding the endpoint and clicking “Try it out”

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

3 participants