-
-
Notifications
You must be signed in to change notification settings - Fork 505
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
Swagger UI with provided spec broken in 1.7.0 #2193
Comments
@tobi-laa you are right, it's also broken for latest version of spring boot with version 2.1.0 |
+1 for 2.1.0 getting NS_CORRUPTED_ERROR in Firefox network inspector and Swagger not rendering - 2.0.4 works perfectly. Webjar URLS give 404, and I see a commit has been made that removes a webjar locator |
…th_provided_spec #2193 Fix Swagger UI with provided spec
Hi! Do you plan to release updated SpringDoc 1.7.x with this fix? Or we should revert to the earlier 1.6.x versions for Spring Boot 2.7.x ? Thanks! |
Describe the bug
Using Springdoc + Swagger UI with a provided spec as described here seems to be broken in version
1.7.0
. Attempting to navigate toswagger-ui.html
yields404 Not Found
.To Reproduce
Steps to reproduce the behavior:
2.7.10
springdoc-openapi-ui
springdoc-openapi-security
Expected behavior
The description found here should either be updated to reflect additional steps or should work again.
Additional context
The problem appears to be the newly added
org.springdoc.core.SpringDocUIConfiguration
, which is only loaded when propertyspringdoc.api-docs.enabled
is set totrue
. With the aforementioned description to use a provided spec, said property needs to be set tofalse
.Maybe it is possible to simply remove
@ConditionalOnExpression("${springdoc.api-docs.enabled:true}")
fromSpringDocUIConfiguration
? As an alternative, the minimal Beans configuration might be expanded to include the contents ofSpringDocUIConfiguration
.The text was updated successfully, but these errors were encountered: