Quarkus: It's not possible to disable openapi

Created on 10 Dec 2020  路  6Comments  路  Source: quarkusio/quarkus

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
areopenapi aresmallrye kinbug triagout-of-date

Most helpful comment

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

All 6 comments

/cc @EricWittmann, @MikeEdgar, @phillip-kruger

Hi @AlexandreGuidin - what version of Quarkus are you using ?

I can't reproduce this in 1.10.3.Final or in the latest master

It doesn't work in 1.9.2.Final though, closing this issue

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

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

blsouthr picture blsouthr  路  3Comments

gastaldi picture gastaldi  路  3Comments

MossabTN picture MossabTN  路  3Comments

nderwin picture nderwin  路  3Comments

gsmet picture gsmet  路  3Comments