summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorteh_coderer <me@tehcoderer.com>2024-01-25 11:00:32 -0500
committerGitHub <noreply@github.com>2024-01-25 16:00:32 +0000
commitdff51f25d3433274f9abe3011c2bdff773600886 (patch)
treecf57fad86eed282b925b32f5f04d80134dda8277
parent21f413d43ee55a7b913ca2a92df3598f0f7b7601 (diff)
don't include `custom_headers` in openapi schema (#5994)
-rw-r--r--openbb_platform/core/openbb_core/api/router/commands.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/openbb_platform/core/openbb_core/api/router/commands.py b/openbb_platform/core/openbb_core/api/router/commands.py
index bd627630542..50e74a65a51 100644
--- a/openbb_platform/core/openbb_core/api/router/commands.py
+++ b/openbb_platform/core/openbb_core/api/router/commands.py
@@ -77,7 +77,9 @@ def build_new_signature(path: str, func: Callable) -> Signature:
name.replace("-", "_"),
kind=Parameter.POSITIONAL_OR_KEYWORD,
default=default,
- annotation=Annotated[Optional[str], Header()],
+ annotation=Annotated[
+ Optional[str], Header(include_in_schema=False)
+ ],
)
)