Hi there,
From what I've tried (v2.9.0
), ExternalDocumentation only works on redoc
and swagger
, among the few litestar examples given in OpenAPI UI Plugins.
Would love to have it on Scalar
as well (ScalarRenderPlugin), since I read that it's going to be the default plugin for v3.0.0
.
Not sure if this is the correct place to ask, but thanks in advance.
FYI, this is the rough code that I used:
from litestar.app import Litestar
from litestar.openapi import OpenAPIConfig
from litestar.openapi.plugins ScalarRenderPlugin,
from litestar.openapi.spec import ExternalDocumentation
Litestar(
openapi_config=OpenAPIConfig(
title="title",
version="version",
external_docs=ExternalDocumentation(
url=project_metadata["project"]["urls"]["Repository"],
description="Repository",
),
render_plugins=[
ScalarRenderPlugin(),
],
path="/docs",
)
)
None
None
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