From b16a4be4e03fb9c4e61b304571af0f6ece729285 Mon Sep 17 00:00:00 2001 From: San Kim Date: Wed, 9 Oct 2024 16:55:16 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20=EC=9D=B8=EC=A6=9D=20=EC=98=88?= =?UTF-8?q?=EC=99=B8=EC=9D=91=EB=8B=B5=20=EB=A6=AC=EB=B7=B0=20=EB=B0=98?= =?UTF-8?q?=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- openapi.yaml | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index 7b41eb1..4eaaec3 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -151,8 +151,6 @@ paths: $ref: '#/components/schemas/GetMyUserInfoResponse' '401': $ref: '#/components/responses/Unauthorized' - '403': - $ref: '#/components/responses/Forbidden' '500': $ref: '#/components/responses/InternalServerError' @@ -363,32 +361,24 @@ components: message: "리소스를 찾을 수 없습니다." Unauthorized: - description: 토큰 만료 + description: 인증 실패 (토큰 만료 또는 유효하지 않은 토큰) content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' examples: - unauthorized: + tokenExpired: value: time: "2024-05-01T00:00:00Z" type: "AUTH" code: "1001" - message: "인증에 실패했습니다." - - Forbidden: - description: 권한 없음 - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorResponse' - examples: - forbidden: + message: "토큰이 만료되었습니다." + invalidToken: value: time: "2024-05-01T00:00:00Z" type: "AUTH" code: "1002" - message: "토큰이 만료되었습니다." + message: "유효하지 않은 토큰입니다." InternalServerError: description: 서버 오류