mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-05-06 22:12:12 +08:00
don't include custom_headers in openapi schema (#5994)
This commit is contained in:
@@ -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)
|
||||
],
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user