Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable validation #1386

Closed
mathieu-amblard opened this issue Dec 15, 2021 · 1 comment
Closed

Disable validation #1386

mathieu-amblard opened this issue Dec 15, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@mathieu-amblard
Copy link
Contributor

mathieu-amblard commented Dec 15, 2021

Describe the feature
After upgrading from Spring Docs 1.5.13 to 1.6.1, Swagger UI validation is enabled.

To Reproduce
Steps to reproduce the behavior:

  • What version of spring-boot you are using? We have tried with 2.3.11.RELEASE and 2.5.7.
  • What modules and versions of springdoc-openapi are you using? 1.6.1
        <dependency>
            <groupId>org.springdoc</groupId>
            <artifactId>springdoc-openapi-webmvc-core</artifactId>
            <version>1.6.1</version>
        </dependency>
        <dependency>
            <groupId>org.springdoc</groupId>
            <artifactId>springdoc-openapi-ui</artifactId>
            <version>1.6.1</version>
        </dependency>

We have also the following properties :

springdoc.api-docs.path=/swagger.json
springdoc.swagger-ui.path=/swagger-ui.html
springdoc.show-actuator=true
springdoc.paths-to-exclude=/error

Expected behavior

@bnasslahsen
Copy link
Contributor

bnasslahsen commented Dec 15, 2021

@mathieu-amblard,

This is not a bug but a feature request...
You can keep the old compatibility mode using (Not recommended): springdoc.swagger-ui.queryConfigEnabled=true

The validation has been enabled by default, with the last release. This related to the upgrade the swagger-ui v4.1.3.

Documentation is now updated: You can disable the validation using:

springdoc.swagger-ui.validator-url=none

We will try to make it the default behavior again for the next release, as you are not the first one asking for disabling validation.

@bnasslahsen bnasslahsen changed the title Swagger UI validation is enabled after upgrading from Spring Docs 1.5.13 to 1.6.1 Disable validation for 1.6.1 Dec 15, 2021
@bnasslahsen bnasslahsen changed the title Disable validation for 1.6.1 Disable validation Dec 16, 2021
@bnasslahsen bnasslahsen added the enhancement New feature or request label Jan 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants