From bf08fc2e71deae1268006deb7b3657d4dd8b9977 Mon Sep 17 00:00:00 2001 From: Vojtech Mares Date: Sat, 27 Apr 2024 21:20:50 +0200 Subject: [PATCH] refactor(api): default response -> 500, Unexepected error -> Internal error --- api/v1/openapi.yaml | 64 ++++++++++++++++++++++----------------------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/api/v1/openapi.yaml b/api/v1/openapi.yaml index dd1fed9..c5e3508 100644 --- a/api/v1/openapi.yaml +++ b/api/v1/openapi.yaml @@ -31,8 +31,8 @@ paths: type: array items: $ref: "#/components/schemas/Training" - default: - description: Unexpected error + "500": + description: Internal error content: application/json: schema: @@ -61,8 +61,8 @@ paths: application/json: schema: $ref: "#/components/schemas/ProblemDetails" - default: - description: Unexpected error + "500": + description: Internal error content: application/json: schema: @@ -96,8 +96,8 @@ paths: application/json: schema: $ref: "#/components/schemas/ProblemDetails" - default: - description: Unexpected error + "500": + description: Internal error content: application/json: schema: @@ -142,8 +142,8 @@ paths: application/json: schema: $ref: "#/components/schemas/ProblemDetails" - default: - description: Unexpected error + "500": + description: Internal error content: application/json: schema: @@ -173,8 +173,8 @@ paths: application/json: schema: $ref: "#/components/schemas/ProblemDetails" - default: - description: Unexpected error + "500": + description: Internal error content: application/json: schema: @@ -205,8 +205,8 @@ paths: type: array items: $ref: "#/components/schemas/TrainingDate" - default: - description: Unexpected error + "500": + description: Internal error content: application/json: schema: @@ -246,8 +246,8 @@ paths: application/json: schema: $ref: "#/components/schemas/ProblemDetails" - default: - description: Unexpected error + "500": + description: Internal error content: application/json: schema: @@ -287,8 +287,8 @@ paths: application/json: schema: $ref: "#/components/schemas/ProblemDetails" - default: - description: Unexpected error + "500": + description: Internal error content: application/json: schema: @@ -342,8 +342,8 @@ paths: application/json: schema: $ref: "#/components/schemas/ProblemDetails" - default: - description: Unexpected error + "500": + description: Internal error content: application/json: schema: @@ -383,8 +383,8 @@ paths: type: array items: $ref: "#/components/schemas/TrainingDateAttendee" - default: - description: Unexpected error + "500": + description: Internal error content: application/json: schema: @@ -427,8 +427,8 @@ paths: application/json: schema: $ref: "#/components/schemas/ProblemDetails" - default: - description: Unexpected error + "500": + description: Internal error content: application/json: schema: @@ -477,8 +477,8 @@ paths: application/json: schema: $ref: "#/components/schemas/ProblemDetails" - default: - description: Unexpected error + "500": + description: Internal error content: application/json: schema: @@ -537,8 +537,8 @@ paths: application/json: schema: $ref: "#/components/schemas/ProblemDetails" - default: - description: Unexpected error + "500": + description: Internal error content: application/json: schema: @@ -578,8 +578,8 @@ paths: type: array items: $ref: "#/components/schemas/TrainingFeedback" - default: - description: Unexpected error + "500": + description: Internal error content: application/json: schema: @@ -610,8 +610,8 @@ paths: type: array items: $ref: "#/components/schemas/TrainingFeedback" - default: - description: Unexpected error + "500": + description: Internal error content: application/json: schema: @@ -657,8 +657,8 @@ paths: $ref: "#/components/schemas/Training" date: $ref: "#/components/schemas/TrainingDate" - default: - description: Unexpected error + "500": + description: Internal error content: application/json: schema: