quarkus.smallrye-openapi.servers
property should be configurable at runtime
#26136
Labels
Milestone
quarkus.smallrye-openapi.servers
property should be configurable at runtime
#26136
Description
The
quarkus.smallrye-openapi.servers
property is currently a build-time only property. This should be configurable at runtime.The use case was discussed in #26124, but the TL;DR; is that users may have
quarkus.swagger-ui.always-include=true
set in their configuration. If so, when the application is deployed anywhere but on the user's local machine, the Swagger UI "try it" no longer works because it is attempting to connect to http://localhost.Furthermore, it would be pretty impossible to know the URLs of where an application is going to be deployed at build time.
@phillip-kruger did provide a workaround - use the
mp.openapi.servers
property at runtime instead ofquarkus.smallrye-openapi.servers
, but shouldn't a configuration property that references a URL be configurable at runtime (like with things like databases/rest clients/etc)?Implementation ideas
No response
The text was updated successfully, but these errors were encountered: