Micronaut queryConfigEnabled

92 Views Asked by At

I would like to activate the queryConfigEnabled swagger-ui property.

Is there a way to do that? Maybe in the openapi.properties or somewhere else?

1

There are 1 best solutions below

1
On

If you are using gradle with java, you can try this one:

tasks.withType(JavaCompile) {
    options.fork = true
    options.forkOptions.jvmArgs << '-Dmicronaut.openapi.views.spec=rapidoc.enabled=true,swagger-ui.enabled=true,swagger-ui.theme=flattop,swagger-ui.queryConfigEnabled=true'

    ...
}

So you can try to add swagger-ui.queryConfigEnabled=true to the end of jvmArgs