don't include custom_headers in openapi schema (#5994)

This commit is contained in:
teh_coderer
2024-01-25 11:00:32 -05:00
committed by GitHub
parent 21f413d43e
commit dff51f25d3

View File

@@ -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)
],
)
)