1
0
Fork 0

refactor(api): default response -> 500, Unexepected error -> Internal error

This commit is contained in:
Vojtěch Mareš 2024-04-27 21:20:50 +02:00
parent 32038981f6
commit bf08fc2e71
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D

View file

@ -31,8 +31,8 @@ paths:
type: array type: array
items: items:
$ref: "#/components/schemas/Training" $ref: "#/components/schemas/Training"
default: "500":
description: Unexpected error description: Internal error
content: content:
application/json: application/json:
schema: schema:
@ -61,8 +61,8 @@ paths:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ProblemDetails" $ref: "#/components/schemas/ProblemDetails"
default: "500":
description: Unexpected error description: Internal error
content: content:
application/json: application/json:
schema: schema:
@ -96,8 +96,8 @@ paths:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ProblemDetails" $ref: "#/components/schemas/ProblemDetails"
default: "500":
description: Unexpected error description: Internal error
content: content:
application/json: application/json:
schema: schema:
@ -142,8 +142,8 @@ paths:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ProblemDetails" $ref: "#/components/schemas/ProblemDetails"
default: "500":
description: Unexpected error description: Internal error
content: content:
application/json: application/json:
schema: schema:
@ -173,8 +173,8 @@ paths:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ProblemDetails" $ref: "#/components/schemas/ProblemDetails"
default: "500":
description: Unexpected error description: Internal error
content: content:
application/json: application/json:
schema: schema:
@ -205,8 +205,8 @@ paths:
type: array type: array
items: items:
$ref: "#/components/schemas/TrainingDate" $ref: "#/components/schemas/TrainingDate"
default: "500":
description: Unexpected error description: Internal error
content: content:
application/json: application/json:
schema: schema:
@ -246,8 +246,8 @@ paths:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ProblemDetails" $ref: "#/components/schemas/ProblemDetails"
default: "500":
description: Unexpected error description: Internal error
content: content:
application/json: application/json:
schema: schema:
@ -287,8 +287,8 @@ paths:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ProblemDetails" $ref: "#/components/schemas/ProblemDetails"
default: "500":
description: Unexpected error description: Internal error
content: content:
application/json: application/json:
schema: schema:
@ -342,8 +342,8 @@ paths:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ProblemDetails" $ref: "#/components/schemas/ProblemDetails"
default: "500":
description: Unexpected error description: Internal error
content: content:
application/json: application/json:
schema: schema:
@ -383,8 +383,8 @@ paths:
type: array type: array
items: items:
$ref: "#/components/schemas/TrainingDateAttendee" $ref: "#/components/schemas/TrainingDateAttendee"
default: "500":
description: Unexpected error description: Internal error
content: content:
application/json: application/json:
schema: schema:
@ -427,8 +427,8 @@ paths:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ProblemDetails" $ref: "#/components/schemas/ProblemDetails"
default: "500":
description: Unexpected error description: Internal error
content: content:
application/json: application/json:
schema: schema:
@ -477,8 +477,8 @@ paths:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ProblemDetails" $ref: "#/components/schemas/ProblemDetails"
default: "500":
description: Unexpected error description: Internal error
content: content:
application/json: application/json:
schema: schema:
@ -537,8 +537,8 @@ paths:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ProblemDetails" $ref: "#/components/schemas/ProblemDetails"
default: "500":
description: Unexpected error description: Internal error
content: content:
application/json: application/json:
schema: schema:
@ -578,8 +578,8 @@ paths:
type: array type: array
items: items:
$ref: "#/components/schemas/TrainingFeedback" $ref: "#/components/schemas/TrainingFeedback"
default: "500":
description: Unexpected error description: Internal error
content: content:
application/json: application/json:
schema: schema:
@ -610,8 +610,8 @@ paths:
type: array type: array
items: items:
$ref: "#/components/schemas/TrainingFeedback" $ref: "#/components/schemas/TrainingFeedback"
default: "500":
description: Unexpected error description: Internal error
content: content:
application/json: application/json:
schema: schema:
@ -657,8 +657,8 @@ paths:
$ref: "#/components/schemas/Training" $ref: "#/components/schemas/Training"
date: date:
$ref: "#/components/schemas/TrainingDate" $ref: "#/components/schemas/TrainingDate"
default: "500":
description: Unexpected error description: Internal error
content: content:
application/json: application/json:
schema: schema: