swagger-uiopenapispringdocspringdoc-openapi-uispringdoc-ui

petstore URL not disabled in SpringDoc OpenAPi


I am using SpringDoc 1.4.3 for swagger.
I have added the below configuration to disabled the petstore URLs in application.yml

Configuration

springdoc:
  swagger-ui:
    disable-swagger-default-url: true
    tags-sorter: alpha
    operations-sorter: alpha
    doc-expansion: none

but when I hit the https://petstore.swagger.io/v2/swagger.json in explore text box, it is still showing me the petsore URLs as shown in the below image.

Swagger Image

Swagger Image


Solution

  • Already tested and validated thanks to the following feature support:

    Just use, the following property:

    springdoc.swagger-ui.disable-swagger-default-url=true