Skip to content

Cannot disable Try it out button #844

Closed
@mecseid

Description

@mecseid

Describe the bug
As the Swagger UI configuration, to disable Try it out button, we have to set supportedSubmitMethods as an empty array.
Because of L199, I can't set an empty array to the property.

To Reproduce

  • What version of spring-boot you are using?
    2.3.3
  • What modules and versions of springdoc-openapi are you using?
    Core, UI and Security with version 1.4.5

Minimal configuration to test:

springdoc:
  api-docs:
    enabled: true
  swagger-ui:
    enabled: true
    supported-submit-methods: []

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions