question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

It's not possible to disable openapi

See original GitHub issue

Describe 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:

  1. Add dependenct quarkus-smallrye-openapi
  2. Add configuration properties
  3. Open swagger-ui page or try to download openapi-file

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
AlexandreGuidincommented, Dec 10, 2020

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

0reactions
AlexandreGuidincommented, Dec 10, 2020

i’m using Quarkus 1.9.2.Final, thanks for feedback!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found