From 4824e146612bb2f33b9b3a25d8399efdcc7ef8f6 Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Mon, 27 Mar 2023 15:24:14 -0400 Subject: oapi: fix a few response types in auth --- src/api/routes/auth/forgot.ts | 2 +- src/api/routes/auth/verify/resend.ts | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/api/routes/auth/forgot.ts b/src/api/routes/auth/forgot.ts index 80ffb225..6fa86021 100644 --- a/src/api/routes/auth/forgot.ts +++ b/src/api/routes/auth/forgot.ts @@ -35,7 +35,7 @@ router.post( responses: { 204: {}, 400: { - body: "APIErrorResponse", + body: "APIErrorOrCaptchaResponse", }, 500: { body: "APIErrorResponse", diff --git a/src/api/routes/auth/verify/resend.ts b/src/api/routes/auth/verify/resend.ts index 215308ec..701f0ea8 100644 --- a/src/api/routes/auth/verify/resend.ts +++ b/src/api/routes/auth/verify/resend.ts @@ -28,8 +28,12 @@ router.post( right: "RESEND_VERIFICATION_EMAIL", responses: { 204: {}, - 400: {}, - 500: {}, + 400: { + body: "APIErrorResponse", + }, + 500: { + body: "APIErrorResponse", + }, }, }), async (req: Request, res: Response) => { -- cgit 1.4.1