Skip to content

Configuration via springdoc.swagger-ui.swaggerUrls doesn't work #481

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

Closed
theoamonteiro opened this issue Mar 8, 2020 · 1 comment
Closed
Labels
enhancement New feature or request

Comments

@theoamonteiro
Copy link

Describe the bug
I was trying to use the springdoc.swagger-ui.swaggerUrls[0].name and springdoc.swagger-ui.swaggerUrls[0].name properties presented on the documentation but they didn't work.

To Reproduce
Steps to reproduce the behavior:

  • spring-boot: 2.2.5.RELEASE
  • org.springdoc:springdoc-openapi-ui:1.2.33

Using the properties

springdoc.swagger-ui.swaggerUrls[0].name=REST API
springdoc.swagger-ui.swaggerUrls[0].url=/v3/api-docs

has no effect and the "Explore"search bar is still shown.

Expected behavior
With a single swaggerUrls provided the top bar should show the "Select a definition" combo.

Screenshots
Expected:
Screenshot from 2020-03-08 16-25-44

Actual:
Screenshot from 2020-03-08 16-32-56

Additional context
The example on de App 2 on the demos leads to the conclusion that the only way to achieve that is programmatically. If that is the case, do not keep the properties or its documentation.

I would also like to question why it is swaggerUrls instead of urls like on the Swagger UI documentation.

@bnasslahsen
Copy link
Collaborator

@theoamonteiro,

This will be fixed for the next release v1.2.34.
The following properties will be used instead:

springdoc.swagger-ui.urls[0].name = users
springdoc.swagger-ui.urls[0].url = /api-docs.yaml

@springdoc springdoc deleted a comment from javaHelper May 1, 2020
@bnasslahsen bnasslahsen added the enhancement New feature or request label Jan 10, 2022
@springdoc springdoc deleted a comment from kishorsamadder Jan 24, 2022
@springdoc springdoc locked as resolved and limited conversation to collaborators Jan 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants