All requests URLs in documentation have duplicate paths when configuring the Litestar app with a custom path and configure the OpenAPI with servers.
So the final request URL has the full server url from OpenAPIConfig and the path added from the Litestar app.
http://localhost:8000/api/v3/api/v3/...
instead of http://localhost:8000/api/v3/...
No response
return Litestar(path="api/v3", ...)
return OpenAPIConfig(
path="/schema",
servers=[Server(url="http://localhost:8000/api/v3")],
render_plugins=[StoplightRenderPlugin(version="latest")],
)
1. Create an OpenAPIConfig that has at least one server e.g. `http://localhost:8000/api/v3`
2. Create a new Litestar app with `api/v3` path and use the OpenAPIConfig from above
3. Run the application and access the schema
4. See that all requests in schema has full server URL from OpenAPI and also the app path which is `api/path` so the final URL is incorrect `http://localhost:8000/api/v3/api/v3/...`
No response
No response
2.9.1
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too