Skip to content

springdoc.api-docs.enabled=false disabling whole swagger UI page #1758

@shivaprasadgurram

Description

@shivaprasadgurram

Describe the bug
I'm using springdoc-openapi-ui version 1.6.9, My intension is to load custom yaml file into swagger UI page for that I used springdoc.api-docs.enabled=false property followed by springdoc.swagger-ui.url=/openapi-spec.yaml but whole swagger UI page got disabled.

To Reproduce
Steps to reproduce the behavior:

  • What version of spring-boot you are using?
    - 2.5.12
  • What modules and versions of springdoc-openapi are you using?
    - 1.6.9
  • What is the actual and the expected result using OpenAPI Description (yml or json)?
    - Actually it should load custom yaml file and disable default "api-docs" but it is not even loading swagger UI page when I disable api-docs using above property.
  • Provide with a sample code (HelloController) or Test that reproduces the problem
    • NA

Expected behavior

  • Actually it should load custom yaml file and disable default "api-docs" but it is not even loading swagger UI page when I disable api-docs using above property.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
I already followed #358 and #389 but none of them helped me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem right

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions