Skip to content

Commit d9b525e

Browse files
committed
feat(openapi): added default response UnexpectedError
1 parent f20dcb0 commit d9b525e

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

spec/openapi.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ paths:
2121
$ref: '#/components/schemas/ApiInformation'
2222
'503':
2323
$ref: '#/components/responses/ServiceUnavailable'
24+
default:
25+
$ref: '#/components/responses/UnexpectedError'
2426
/logs:
2527
get:
2628
operationId: listLogs
@@ -35,6 +37,8 @@ paths:
3537
$ref: '#/components/responses/ArrayOfLogs'
3638
'400':
3739
$ref: '#/components/responses/BadRequest'
40+
default:
41+
$ref: '#/components/responses/UnexpectedError'
3842
tags:
3943
- log
4044
post:
@@ -45,6 +49,8 @@ paths:
4549
$ref: '#/components/responses/Log'
4650
'400':
4751
$ref: '#/components/responses/BadRequest'
52+
default:
53+
$ref: '#/components/responses/UnexpectedError'
4854
tags:
4955
- log
5056
/logs/{id}:
@@ -66,6 +72,8 @@ paths:
6672
$ref: '#/components/responses/BadRequest'
6773
'404':
6874
$ref: '#/components/responses/NotFound'
75+
default:
76+
$ref: '#/components/responses/UnexpectedError'
6977
tags:
7078
- log
7179
/status:
@@ -81,6 +89,8 @@ paths:
8189
$ref: '#/components/schemas/DeployInformation'
8290
'503':
8391
$ref: '#/components/responses/ServiceUnavailable'
92+
default:
93+
$ref: '#/components/responses/UnexpectedError'
8494

8595
components:
8696
parameters:
@@ -154,6 +164,12 @@ components:
154164
application/json:
155165
schema:
156166
$ref: '#/components/schemas/Errors'
167+
UnexpectedError:
168+
description: Unexpected Error
169+
content:
170+
application/json:
171+
schema:
172+
$ref: '#/components/schemas/Errors'
157173
schemas:
158174
ApiInformation:
159175
description: API information

0 commit comments

Comments
 (0)