Skip to content

Commit a263a97

Browse files
committed
Added bad request and unauthorized errors
1 parent 99ac727 commit a263a97

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

swagger.yaml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,66 @@ components:
107107
type: string
108108
solution:
109109
type: string
110+
BadRequest:
111+
description: Bad Request error
112+
content:
113+
application/json:
114+
schema:
115+
type: object
116+
properties:
117+
code:
118+
type: string
119+
example: 400
120+
default: 400
121+
success:
122+
type: boolean
123+
default: false
124+
example: false
125+
error:
126+
type: object
127+
properties:
128+
type:
129+
type: string
130+
default: BadRequestError
131+
example: BadRequestError
132+
name:
133+
type: string
134+
default: BadRequest Error
135+
example: BadRequest Error
136+
message:
137+
type: string
138+
solution:
139+
type: string
140+
Unauthorized:
141+
description: Unauthorized error
142+
content:
143+
application/json:
144+
schema:
145+
type: object
146+
properties:
147+
code:
148+
type: string
149+
example: 401
150+
default: 401
151+
success:
152+
type: boolean
153+
default: false
154+
example: false
155+
error:
156+
type: object
157+
properties:
158+
type:
159+
type: string
160+
default: UnauthorizedError
161+
example: UnauthorizedError
162+
name:
163+
type: string
164+
default: Unauthorized Error
165+
example: Unauthorized Error
166+
message:
167+
type: string
168+
solution:
169+
type: string
110170
securitySchemes:
111171
bearerAuth:
112172
type: http

0 commit comments

Comments
 (0)