We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The query-only parameters allowEmptyValue and allowReserved are being rendered (although never used) for path, header and cookie parameters as well.
allowEmptyValue
allowReserved
See https://spec.openapis.org/oas/v3.1.0#fixed-fields-9
No response
@get("/{path_param:str}") def handler( path_param: str, query_param: str, header_param: Annotated[str, Parameter(header="header_param")], cookie_param: Annotated[str, Parameter(cookie="cookie_param")], ) -> None: pass app = Litestar([handler]) params = {p.name: p for p in app.openapi_schema.paths["/{path_param}"].get.parameters} for key in ["path_param", "header_param", "cookie_param"]: schema = params[key].to_schema() assert "allowEmptyValue" not in schema assert "allowReserved" not in schema
all
The text was updated successfully, but these errors were encountered:
fix(OpenAPI): Query-only properties included in path, cookie and head…
11df596
…er parameter schema and response headers (#3908) (#3909)
This issue has been closed in #3909. The change will be included in upcoming releases.
Sorry, something went wrong.
A fix for this issue has been released in v2.14.0
Successfully merging a pull request may close this issue.
Description
The query-only parameters
allowEmptyValue
andallowReserved
are being rendered (although never used) for path, header and cookie parameters as well.See https://spec.openapis.org/oas/v3.1.0#fixed-fields-9
URL to code causing the issue
No response
MCVE
Steps to reproduce
No response
Screenshots
No response
Logs
No response
Litestar Version
all
Platform
The text was updated successfully, but these errors were encountered: