I am currently updating Tapir from 0.18.X to 1.12.2 and have the following code for generating OpenAPI documentation:
val endpoints: List[ServerEndpoint[_, F]] = ???
val swaggerEndpoints = SwaggerInterpreter().fromServerEndpoints(tapir, info.title, info.version)
Http4sServerInterpreter(endpoints ++ swaggerEndpoints)
A server is working and /docs route is redirecting to /docs/index.html?url=/docs/docs.yaml. Swagger UI shows Petstore documentation though, so I have to manually set /docs/docs.yaml in UI to show documentation of my service.
It seems like the problem is a security fix of Swagger which adds enableQueryConfig option. The default value is false, so Swagger ignores the url query parameter. An old behavior can be restored by settings this value to true.
How can I fix this problem using tapir and tapir-swagger-ui-bundle? Is there any way to set enableQueryConfig to true using Tapir?