It's not possible to disable openapi
See original GitHub issueDescribe the bug
The enabled
config of dependency quarkus-smallrye-openap
it’s not working.
Expected behavior
After adding the following config in application.yml
, it should disable the generation or endpoint or download of the openapi schema file
quarkus:
smallrye-openapi:
enable: false
It’s described here: https://quarkus.io/guides/openapi-swaggerui#quarkus-smallrye-openapi_configuration And here: https://github.com/quarkusio/quarkus/blob/master/extensions/smallrye-openapi/runtime/src/main/java/io/quarkus/smallrye/openapi/runtime/OpenApiRuntimeConfig.java
Actual behavior Even after adding aditional configuration, it not make any difference. I’m still able to download and see the file
quarkus:
smallrye-openapi:
enable: false
smallrye-openapi:
enable: false
To Reproduce Steps to reproduce the behavior:
- Add dependenct
quarkus-smallrye-openapi
- Add configuration properties
- Open swagger-ui page or try to download openapi-file
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Not possible to disable OpenAPI, swagger UI #3960 - GitHub
API Platform version(s) affected: 2.6 Description Using the following configuration fails: api_platform: enable_swagger: false ...
Read more >java - Swagger 3.0.0: Can't disable in production without ...
My application does not use Spring Security and it is not possible to include the spring-boot-security-starter dependency; It requires ...
Read more >Disable Swagger-UI when using openapi
I've just added an explicit DisableSwaggerUI = true that will let you disable SwaggerUI in OpenApiFeature plugin in this commit. This option is ......
Read more >Metadata and Docs URLs - FastAPI
OpenAPI URL¶ ... By default, the OpenAPI schema is served at /openapi.json . But you can configure it with the parameter openapi_url ....
Read more >springdoc-openapi v2.0.0
springdoc-openapi java library helps to automate the generation of API documentation using spring boot projects. springdoc-openapi works by ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ve tested again in 1.10.3.Final and it works!
Some other bugs related with swagger-ui are resolved as well. Thanks again guys, nice work! @phillip-kruger @gastaldi
i’m using Quarkus 1.9.2.Final, thanks for feedback!