Fix GET /auth/login missing 400 in OpenAPI spec and use status constant#67571
Conversation
|
Celery integration test failed without producing any test output — appears to be a runner infrastructure issue unrelated to this PR. |
Still, some front-end artifacts are generated from openapi specs, please run prek to fix the static check failures |
|
I have run The test uses cmd_timeout=0.001 (1ms) to verify timeout behavior, but on a loaded CI runner, paramiko raises SSHException: Timeout opening channel before the channel is even established — a different exception type than expected. This is a pre-existing flaky test tracked in #65864. I think the new failure is unrelated to this PR (? |
You are correct |
The
/auth/loginendpoint raises HTTP 400 when thenextredirect URL is invalid or unsafe, but this response code was missing from theresponsesdecorator — so the generated OpenAPI spec didn't document it.Changes:
HTTP_400_BAD_REQUESTtocreate_openapi_http_exception_docfor the login endpoint400withstatus.HTTP_400_BAD_REQUESTfor consistency with the rest of the codebase