Skip to content

springdoc.swagger-ui.layout=BaseLayout property is not passed over to swagger-ui #536

Closed
@dranzerashi

Description

@dranzerashi

When I'm passing springdoc.swagger-ui.layout=BaseLayout property in application properties it is not being passed over to swagger-ui, when i directly pass the parameter in the url lets say http://localhost:8080/swagger-ui/index.html?configUrl=/api-docs/swagger-config&layout=BaseLayout it removes the top bar as expected.

Expected behavior

  • The query parameter layout=BaseLayout is added
  • The top bar with explore button should disappear
  • here is how it should look https://ibb.co/4FHNDk3

Current Behavior

  • the corresponding url parameter is missing
  • the layout still comes with the top bar
  • screenshot: https://ibb.co/Pj5S9dd

Additional details:
org.springframework.boot: spring-boot-starter-parent: 2.2.5.RELEASE
org.springdoc: springdoc-openapi-ui: tried both 1.3.0 & 1.2.32

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