Skip to content

Commit

Permalink
🩹 validation μ—λŸ¬ μˆ˜μ •
Browse files Browse the repository at this point in the history
  • Loading branch information
waterfogSW committed Oct 3, 2024
1 parent 394dad9 commit 8cf2c38
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ paths:
schema:
$ref: '#/components/schemas/RefreshTokenResponse'
'400':
$ref: '#/components/schemas/ErrorResponse'
$ref: '#/components/responses/InvalidRefreshToken'
'401':
$ref: '#/components/responses/RefreshTokenExpired'
'500':
$ref: '#/components/responses/InternalServerError'

Expand Down Expand Up @@ -370,6 +372,33 @@ components:
code: "1003"
message: "μ„œλ²„ 였λ₯˜κ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€."

RefreshTokenExpired:
description: λ¦¬ν”„λ ˆμ‹œ 토큰 만료
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
tokenExpired:
value:
time: "2024-05-01T00:00:00Z"
type: "AUTH"
code: "1008"
message: "λ¦¬ν”„λ ˆμ‹œ 토큰이 λ§Œλ£Œλ˜μ—ˆμŠ΅λ‹ˆλ‹€."

InvalidRefreshToken:
description: μœ νš¨ν•˜μ§€ μ•Šμ€ λ¦¬ν”„λ ˆμ‹œ 토큰
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
invalidToken:
value:
time: "2024-05-01T00:00:00Z"
type: "AUTH"
code: "1009"
message: "μœ νš¨ν•˜μ§€ μ•Šμ€ λ¦¬ν”„λ ˆμ‹œ ν† ν°μž…λ‹ˆλ‹€."

schemas:
ErrorResponse:
Expand Down

0 comments on commit 8cf2c38

Please sign in to comment.