Skip to content

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

Closed
@theoamonteiro

Description

@theoamonteiro

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions