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: 서버 오류