Skip to content

Commit dfc7c3d

Browse files
committed
add erro 500 to openapi
1 parent 058846d commit dfc7c3d

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

cmd/gendoc/docs.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -836,6 +836,7 @@ Contains a JSON object with the details of an error.
836836
Tags: []Tag{SystemTag},
837837
PossibleErrors: []ErrorResponse{
838838
{StatusCode: http.StatusConflict, Reference: "#/components/responses/Conflict"},
839+
{StatusCode: http.StatusInternalServerError, Reference: "#/components/responses/InternalServerError"},
839840
},
840841
},
841842
{

internal/api/docs/openapi.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,6 +1091,8 @@ paths:
10911091
description: Successful response
10921092
"409":
10931093
$ref: '#/components/responses/Conflict'
1094+
"500":
1095+
$ref: '#/components/responses/InternalServerError'
10941096
summary: Stop the upgrade process in background
10951097
tags:
10961098
- System

0 commit comments

Comments
 (0)