How can I pass configuration options such as hideTestRequestButton to ScalarRenderPlugin OpenAPI? #4252
-
|
Hello, I'm using Litestar with
I've seen that this option exists in the Scalar configuration, as mentioned here: I've tried adding it directly to Here is my current configuration: from litestar.openapi.plugins import ScalarRenderPlugin
from litestar.openapi.spec import Contact, Server, Tag
openapi_config = OpenAPIConfig(
title="API Docs",
version="1.0.0",
description="...",
contact=Contact(name="The Team", email="..."),
path="/",
servers=[Server(url="http://localhost:8000", description="Local server")],
tags=[
Tag(name="Health", description="Health check and monitoring endpoints"),
],
render_plugins=[ScalarRenderPlugin()],
)Could you please let me know if it's possible to add this option, or if it would need to be added to Thanks in advance for your help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
This is currently not supported, but would be a useful feature. If you want you can open an issue / PR :) |
Beta Was this translation helpful? Give feedback.

I think actually this is @provinzkraut, via
options: