Skip to content

Commit 552db79

Browse files
committed
add erro 500 to openapi
1 parent df1eb43 commit 552db79

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
@@ -837,6 +837,7 @@ Contains a JSON object with the details of an error.
837837
Tags: []Tag{SystemTag},
838838
PossibleErrors: []ErrorResponse{
839839
{StatusCode: http.StatusConflict, Reference: "#/components/responses/Conflict"},
840+
{StatusCode: http.StatusInternalServerError, Reference: "#/components/responses/InternalServerError"},
840841
},
841842
},
842843
{

internal/api/docs/openapi.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,6 +1089,8 @@ paths:
10891089
description: Successful response
10901090
"409":
10911091
$ref: '#/components/responses/Conflict'
1092+
"500":
1093+
$ref: '#/components/responses/InternalServerError'
10921094
summary: Stop the upgrade process in background
10931095
tags:
10941096
- System

0 commit comments

Comments
 (0)