🎨 Auto format

This commit is contained in:
pre-commit-ci-lite[bot] 2025-12-08 18:32:30 +00:00 committed by GitHub
parent b88f868e50
commit e7f361cacb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -419,8 +419,7 @@ def get_openapi_path(
all_route_params = get_flat_params(route.dependant)
requires_validation_error = bool(all_route_params or route.body_field)
has_validation_response = any(
status in operation["responses"]
for status in ("422", "4XX", "default")
status in operation["responses"] for status in ("422", "4XX", "default")
)
if requires_validation_error and not has_validation_response:
operation["responses"][http422] = {