From 50768a44f7895f7f9dfcf03fd917bf4100435953 Mon Sep 17 00:00:00 2001 From: rito528 <39003544+rito528@users.noreply.github.com> Date: Fri, 15 Dec 2023 15:34:49 +0900 Subject: [PATCH 1/2] =?UTF-8?q?chore:=20=E3=83=AC=E3=82=B9=E3=83=9D?= =?UTF-8?q?=E3=83=B3=E3=82=B9=E3=81=AE=E5=AE=9A=E7=BE=A9=E3=82=92=E3=81=BE?= =?UTF-8?q?=E3=81=A8=E3=82=81=E3=81=AA=E3=81=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- schema/errors/errorResponses.yml | 12 -------- schema/paths/forms/[formId]/answers/index.yml | 10 +++---- schema/paths/forms/[formId]/index.yml | 28 +++++++++---------- .../paths/forms/[formId]/questions/index.yml | 8 +++--- schema/paths/forms/answers/comment/index.yml | 28 +++++++++---------- schema/paths/forms/answers/index.yml | 16 +++++------ schema/paths/forms/index.yml | 14 +++++----- schema/paths/forms/labels/index.yml | 24 ++++++++-------- schema/paths/forms/questions/index.yml | 18 ++++++------ schema/paths/users/[uuid]/index.yml | 10 +++---- schema/paths/users/index.yml | 4 +-- schema/paths/users/list/index.yml | 10 +++---- 12 files changed, 85 insertions(+), 97 deletions(-) delete mode 100644 schema/errors/errorResponses.yml diff --git a/schema/errors/errorResponses.yml b/schema/errors/errorResponses.yml deleted file mode 100644 index bdfec8d..0000000 --- a/schema/errors/errorResponses.yml +++ /dev/null @@ -1,12 +0,0 @@ -components: - responses: - syntaxError: - description: リクエストの構文が間違っている - unauthorized: - description: 認証されていない - forbidden: - description: 権限が不足している - notFound: - description: 見つからなかった - internalServerError: - description: サーバーエラー diff --git a/schema/paths/forms/[formId]/answers/index.yml b/schema/paths/forms/[formId]/answers/index.yml index 66930a9..f488cb6 100644 --- a/schema/paths/forms/[formId]/answers/index.yml +++ b/schema/paths/forms/[formId]/answers/index.yml @@ -13,12 +13,12 @@ get: schema: $ref: "../../../../types/forms/definitions.yml#/definitions/answers" "400": - $ref: "../../../../errors/errorResponses.yml#/components/responses/syntaxError" + description: リクエストの構文が間違っている "401": - $ref: "../../../../errors/errorResponses.yml#/components/responses/unauthorized" + description: 認証されていない "403": - $ref: "../../../../errors/errorResponses.yml#/components/responses/forbidden" + description: 権限が不足している "404": - $ref: "../../../../errors/errorResponses.yml#/components/responses/notFound" + description: 見つからなかった "500": - $ref: "../../../../errors/errorResponses.yml#/components/responses/internalServerError" + description: サーバーエラー diff --git a/schema/paths/forms/[formId]/index.yml b/schema/paths/forms/[formId]/index.yml index c1465b4..c7da30c 100644 --- a/schema/paths/forms/[formId]/index.yml +++ b/schema/paths/forms/[formId]/index.yml @@ -13,13 +13,13 @@ get: schema: $ref: "../../../types/forms/definitions.yml#/definitions/form" "400": - $ref: "../../../errors/errorResponses.yml#/components/responses/syntaxError" + description: リクエストの構文が間違っている "401": - $ref: "../../../errors/errorResponses.yml#/components/responses/unauthorized" + description: 認証されていない "404": - $ref: "../../../errors/errorResponses.yml#/components/responses/notFound" + description: 見つからなかった "500": - $ref: "../../../errors/errorResponses.yml#/components/responses/internalServerError" + description: サーバーエラー delete: tags: @@ -36,15 +36,15 @@ delete: schema: $ref: "../../../types/forms/definitions.yml#/definitions/id" "400": - $ref: "../../../errors/errorResponses.yml#/components/responses/syntaxError" + description: リクエストの構文が間違っている "401": - $ref: "../../../errors/errorResponses.yml#/components/responses/unauthorized" + description: 認証されていない "403": - $ref: "../../../errors/errorResponses.yml#/components/responses/forbidden" + description: 権限が不足している "404": - $ref: "../../../errors/errorResponses.yml#/components/responses/notFound" + description: 見つからなかった "500": - $ref: "../../../errors/errorResponses.yml#/components/responses/internalServerError" + description: サーバーエラー patch: tags: @@ -68,12 +68,12 @@ patch: schema: $ref: "../../../types/forms/definitions.yml#/definitions/form" "400": - $ref: "../../../errors/errorResponses.yml#/components/responses/syntaxError" + description: リクエストの構文が間違っている "401": - $ref: "../../../errors/errorResponses.yml#/components/responses/unauthorized" + description: 認証されていない "403": - $ref: "../../../errors/errorResponses.yml#/components/responses/forbidden" + description: 権限が不足している "404": - $ref: "../../../errors/errorResponses.yml#/components/responses/notFound" + description: 見つからなかった "500": - $ref: "../../../errors/errorResponses.yml#/components/responses/internalServerError" + description: サーバーエラー diff --git a/schema/paths/forms/[formId]/questions/index.yml b/schema/paths/forms/[formId]/questions/index.yml index 0f8072b..89406bc 100644 --- a/schema/paths/forms/[formId]/questions/index.yml +++ b/schema/paths/forms/[formId]/questions/index.yml @@ -14,10 +14,10 @@ get: schema: $ref: "../../../../types/forms/definitions.yml#/definitions/questions" "400": - $ref: "../../../../errors/errorResponses.yml#/components/responses/syntaxError" + description: リクエストの構文が間違っている "401": - $ref: "../../../../errors/errorResponses.yml#/components/responses/unauthorized" + description: 認証されていない "404": - $ref: "../../../../errors/errorResponses.yml#/components/responses/notFound" + description: 見つからなかった "500": - $ref: "../../../../errors/errorResponses.yml#/components/responses/internalServerError" + description: サーバーエラー diff --git a/schema/paths/forms/answers/comment/index.yml b/schema/paths/forms/answers/comment/index.yml index d29fae1..9712656 100644 --- a/schema/paths/forms/answers/comment/index.yml +++ b/schema/paths/forms/answers/comment/index.yml @@ -14,13 +14,13 @@ post: "200": description: コメント成功 "400": - $ref: "../../../../errors/errorResponses.yml#/components/responses/syntaxError" + description: リクエストの構文が間違っている "401": - $ref: "../../../../errors/errorResponses.yml#/components/responses/unauthorized" + description: 認証されていない "404": - $ref: "../../../../errors/errorResponses.yml#/components/responses/notFound" + description: 見つからなかった "500": - $ref: "../../../../errors/errorResponses.yml#/components/responses/internalServerError" + description: サーバーエラー delete: tags: @@ -38,15 +38,15 @@ delete: "200": description: コメントの削除成功 "400": - $ref: "../../../../errors/errorResponses.yml#/components/responses/syntaxError" + description: リクエストの構文が間違っている "401": - $ref: "../../../../errors/errorResponses.yml#/components/responses/unauthorized" + description: 認証されていない "403": - $ref: "../../../../errors/errorResponses.yml#/components/responses/forbidden" + description: 権限が不足している "404": - $ref: "../../../../errors/errorResponses.yml#/components/responses/notFound" + description: 見つからなかった "500": - $ref: "../../../../errors/errorResponses.yml#/components/responses/internalServerError" + description: サーバーエラー patch: tags: @@ -64,12 +64,12 @@ patch: "200": description: コメント編集成功 "400": - $ref: "../../../../errors/errorResponses.yml#/components/responses/syntaxError" + description: リクエストの構文が間違っている "401": - $ref: "../../../../errors/errorResponses.yml#/components/responses/unauthorized" + description: 認証されていない "403": - $ref: "../../../../errors/errorResponses.yml#/components/responses/forbidden" + description: 権限が不足している "404": - $ref: "../../../../errors/errorResponses.yml#/components/responses/notFound" + description: 見つからなかった "500": - $ref: "../../../../errors/errorResponses.yml#/components/responses/internalServerError" + description: サーバーエラー diff --git a/schema/paths/forms/answers/index.yml b/schema/paths/forms/answers/index.yml index db47b12..350f15b 100644 --- a/schema/paths/forms/answers/index.yml +++ b/schema/paths/forms/answers/index.yml @@ -11,15 +11,15 @@ get: schema: $ref: "../../../types/forms/definitions.yml#/definitions/answers" "400": - $ref: "../../../errors/errorResponses.yml#/components/responses/syntaxError" + description: リクエストの構文が間違っている "401": - $ref: "../../../errors/errorResponses.yml#/components/responses/unauthorized" + description: 認証されていない "403": - $ref: "../../../errors/errorResponses.yml#/components/responses/forbidden" + description: 権限が不足している "404": - $ref: "../../../errors/errorResponses.yml#/components/responses/notFound" + description: 見つからなかった "500": - $ref: "../../../errors/errorResponses.yml#/components/responses/internalServerError" + description: サーバーエラー post: tags: @@ -37,8 +37,8 @@ post: "200": description: 回答に成功 "401": - $ref: "../../../errors/errorResponses.yml#/components/responses/unauthorized" + description: 認証されていない "404": - $ref: "../../../errors/errorResponses.yml#/components/responses/notFound" + description: 見つからなかった "500": - $ref: "../../../errors/errorResponses.yml#/components/responses/internalServerError" + description: サーバーエラー diff --git a/schema/paths/forms/index.yml b/schema/paths/forms/index.yml index 6ce01f8..44247f2 100644 --- a/schema/paths/forms/index.yml +++ b/schema/paths/forms/index.yml @@ -27,13 +27,13 @@ post: schema: type: string "400": - $ref: "../../errors/errorResponses.yml#/components/responses/syntaxError" + description: リクエストの構文が間違っている "401": - $ref: "../../errors/errorResponses.yml#/components/responses/unauthorized" + description: 認証されていない "403": - $ref: "../../errors/errorResponses.yml#/components/responses/forbidden" + description: 権限が不足している "500": - $ref: "../../errors/errorResponses.yml#/components/responses/internalServerError" + description: サーバーエラー get: tags: - forms @@ -83,8 +83,8 @@ get: items: $ref: "../../types/forms/definitions.yml#/definitions/simple_form" "400": - $ref: "../../errors/errorResponses.yml#/components/responses/syntaxError" + description: リクエストの構文が間違っている "401": - $ref: "../../errors/errorResponses.yml#/components/responses/unauthorized" + description: 認証されていない "500": - $ref: "../../errors/errorResponses.yml#/components/responses/internalServerError" + description: サーバーエラー diff --git a/schema/paths/forms/labels/index.yml b/schema/paths/forms/labels/index.yml index eb2b18f..b35d396 100644 --- a/schema/paths/forms/labels/index.yml +++ b/schema/paths/forms/labels/index.yml @@ -14,11 +14,11 @@ get: schema: $ref: "../../../types/forms/definitions.yml#/definitions/form_labels" "400": - $ref: "../../../errors/errorResponses.yml#/components/responses/syntaxError" + description: リクエストの構文が間違っている "401": - $ref: "../../../errors/errorResponses.yml#/components/responses/unauthorized" + description: 認証されていない "500": - $ref: "../../../errors/errorResponses.yml#/components/responses/internalServerError" + description: サーバーエラー post: tags: @@ -37,13 +37,13 @@ post: "200": description: "ラベルの作成に成功" "400": - $ref: "../../../errors/errorResponses.yml#/components/responses/syntaxError" + description: リクエストの構文が間違っている "403": - $ref: "../../../errors/errorResponses.yml#/components/responses/forbidden" + description: 権限が不足している "401": - $ref: "../../../errors/errorResponses.yml#/components/responses/unauthorized" + description: 認証されていない "500": - $ref: "../../../errors/errorResponses.yml#/components/responses/internalServerError" + description: サーバーエラー delete: tags: @@ -62,12 +62,12 @@ delete: "200": description: "ラベルの削除に成功" "400": - $ref: "../../../errors/errorResponses.yml#/components/responses/syntaxError" + description: リクエストの構文が間違っている "401": - $ref: "../../../errors/errorResponses.yml#/components/responses/unauthorized" + description: 認証されていない "403": - $ref: "../../../errors/errorResponses.yml#/components/responses/forbidden" + description: 権限が不足している "404": - $ref: "../../../errors/errorResponses.yml#/components/responses/notFound" + description: 見つからなかった "500": - $ref: "../../../errors/errorResponses.yml#/components/responses/internalServerError" + description: サーバーエラー diff --git a/schema/paths/forms/questions/index.yml b/schema/paths/forms/questions/index.yml index c2f5d99..e18e956 100644 --- a/schema/paths/forms/questions/index.yml +++ b/schema/paths/forms/questions/index.yml @@ -20,13 +20,13 @@ post: schema: $ref: "../../../types/forms/definitions.yml#/definitions/id" "400": - $ref: "../../../errors/errorResponses.yml#/components/responses/syntaxError" + description: リクエストの構文が間違っている "401": - $ref: "../../../errors/errorResponses.yml#/components/responses/unauthorized" + description: 認証されていない "403": - $ref: "../../../errors/errorResponses.yml#/components/responses/forbidden" + description: 権限が不足している "500": - $ref: "../../../errors/errorResponses.yml#/components/responses/internalServerError" + description: サーバーエラー delete: tags: @@ -45,12 +45,12 @@ delete: "200": description: "質問の削除に成功" "400": - $ref: "../../../errors/errorResponses.yml#/components/responses/syntaxError" + description: リクエストの構文が間違っている "401": - $ref: "../../../errors/errorResponses.yml#/components/responses/unauthorized" + description: 認証されていない "403": - $ref: "../../../errors/errorResponses.yml#/components/responses/forbidden" + description: 権限が不足している "404": - $ref: "../../../errors/errorResponses.yml#/components/responses/notFound" + description: 見つからなかった "500": - $ref: "../../../errors/errorResponses.yml#/components/responses/internalServerError" + description: サーバーエラー diff --git a/schema/paths/users/[uuid]/index.yml b/schema/paths/users/[uuid]/index.yml index 2327b2a..9b1d3d8 100644 --- a/schema/paths/users/[uuid]/index.yml +++ b/schema/paths/users/[uuid]/index.yml @@ -10,12 +10,12 @@ patch: "200": description: ユーザー情報の変更に成功 "400": - $ref: "../../../errors/errorResponses.yml#/components/responses/syntaxError" + description: リクエストの構文が間違っている "401": - $ref: "../../../errors/errorResponses.yml#/components/responses/unauthorized" + description: 認証されていない "403": - $ref: "../../../errors/errorResponses.yml#/components/responses/forbidden" + description: 権限が不足している "404": - $ref: "../../../errors/errorResponses.yml#/components/responses/notFound" + description: 見つからなかった "500": - $ref: "../../../errors/errorResponses.yml#/components/responses/internalServerError" + description: サーバーエラー diff --git a/schema/paths/users/index.yml b/schema/paths/users/index.yml index 51f49be..b348469 100644 --- a/schema/paths/users/index.yml +++ b/schema/paths/users/index.yml @@ -14,6 +14,6 @@ get: schema: $ref: "../../types/users/definitions.yml#/definitions/user" "401": - $ref: "../../errors/errorResponses.yml#/components/responses/unauthorized" + description: 認証されていない "500": - $ref: "../../errors/errorResponses.yml#/components/responses/internalServerError" + description: サーバーエラー diff --git a/schema/paths/users/list/index.yml b/schema/paths/users/list/index.yml index 4ba95e7..226c28a 100644 --- a/schema/paths/users/list/index.yml +++ b/schema/paths/users/list/index.yml @@ -12,12 +12,12 @@ get: schema: $ref: "../../../types/users/definitions.yml#/definitions/users" "400": - $ref: "../../../errors/errorResponses.yml#/components/responses/syntaxError" + description: リクエストの構文が間違っている "401": - $ref: "../../../errors/errorResponses.yml#/components/responses/unauthorized" + description: 認証されていない "403": - $ref: "../../../errors/errorResponses.yml#/components/responses/forbidden" + description: 権限が不足している "404": - $ref: "../../../errors/errorResponses.yml#/components/responses/notFound" + description: 見つからなかった "500": - $ref: "../../../errors/errorResponses.yml#/components/responses/internalServerError" + description: サーバーエラー From 761caa7b95e2488e75deae36dd581d4c003a064d Mon Sep 17 00:00:00 2001 From: rito528 <39003544+rito528@users.noreply.github.com> Date: Fri, 15 Dec 2023 15:40:27 +0900 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=E3=83=AC=E3=82=B9=E3=83=9D=E3=83=B3?= =?UTF-8?q?=E3=82=B9=E3=83=A1=E3=83=83=E3=82=BB=E3=83=BC=E3=82=B8=E3=82=92?= =?UTF-8?q?=E4=B8=81=E5=AF=A7=E3=81=AB=E6=9B=B8=E3=81=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- schema/paths/forms/[formId]/answers/index.yml | 2 +- schema/paths/forms/[formId]/questions/index.yml | 2 +- schema/paths/forms/answers/comment/index.yml | 4 ++-- schema/paths/forms/answers/index.yml | 8 ++++---- schema/paths/forms/labels/index.yml | 2 +- schema/paths/forms/questions/index.yml | 2 +- schema/paths/users/[uuid]/index.yml | 2 +- schema/paths/users/list/index.yml | 2 -- 8 files changed, 11 insertions(+), 13 deletions(-) diff --git a/schema/paths/forms/[formId]/answers/index.yml b/schema/paths/forms/[formId]/answers/index.yml index f488cb6..3668dc6 100644 --- a/schema/paths/forms/[formId]/answers/index.yml +++ b/schema/paths/forms/[formId]/answers/index.yml @@ -19,6 +19,6 @@ get: "403": description: 権限が不足している "404": - description: 見つからなかった + description: 指定されたフォームが見つからなかった "500": description: サーバーエラー diff --git a/schema/paths/forms/[formId]/questions/index.yml b/schema/paths/forms/[formId]/questions/index.yml index 89406bc..73f2175 100644 --- a/schema/paths/forms/[formId]/questions/index.yml +++ b/schema/paths/forms/[formId]/questions/index.yml @@ -18,6 +18,6 @@ get: "401": description: 認証されていない "404": - description: 見つからなかった + description: 指定されたフォームが見つからなかった "500": description: サーバーエラー diff --git a/schema/paths/forms/answers/comment/index.yml b/schema/paths/forms/answers/comment/index.yml index 9712656..70a295d 100644 --- a/schema/paths/forms/answers/comment/index.yml +++ b/schema/paths/forms/answers/comment/index.yml @@ -18,7 +18,7 @@ post: "401": description: 認証されていない "404": - description: 見つからなかった + description: 回答が見つからなかった "500": description: サーバーエラー @@ -44,7 +44,7 @@ delete: "403": description: 権限が不足している "404": - description: 見つからなかった + description: コメントIDが見つからなかった "500": description: サーバーエラー diff --git a/schema/paths/forms/answers/index.yml b/schema/paths/forms/answers/index.yml index 350f15b..64e5dc8 100644 --- a/schema/paths/forms/answers/index.yml +++ b/schema/paths/forms/answers/index.yml @@ -17,7 +17,7 @@ get: "403": description: 権限が不足している "404": - description: 見つからなかった + description: フォームが見つからなかった "500": description: サーバーエラー @@ -27,7 +27,7 @@ post: operationId: postFormAnswers summary: 指定フォームに対して回答する requestBody: - description: 作成するフォームの内容 + description: 回答の内容 required: true content: application/json: @@ -37,8 +37,8 @@ post: "200": description: 回答に成功 "401": - description: 認証されていない + description: 認証されていない "404": - description: 見つからなかった + description: フォームか質問が見つからなかった "500": description: サーバーエラー diff --git a/schema/paths/forms/labels/index.yml b/schema/paths/forms/labels/index.yml index b35d396..2f5c93b 100644 --- a/schema/paths/forms/labels/index.yml +++ b/schema/paths/forms/labels/index.yml @@ -68,6 +68,6 @@ delete: "403": description: 権限が不足している "404": - description: 見つからなかった + description: ラベルIDが見つからなかった "500": description: サーバーエラー diff --git a/schema/paths/forms/questions/index.yml b/schema/paths/forms/questions/index.yml index e18e956..9b11651 100644 --- a/schema/paths/forms/questions/index.yml +++ b/schema/paths/forms/questions/index.yml @@ -51,6 +51,6 @@ delete: "403": description: 権限が不足している "404": - description: 見つからなかった + description: question_idが見つからなかった "500": description: サーバーエラー diff --git a/schema/paths/users/[uuid]/index.yml b/schema/paths/users/[uuid]/index.yml index 9b1d3d8..910f5eb 100644 --- a/schema/paths/users/[uuid]/index.yml +++ b/schema/paths/users/[uuid]/index.yml @@ -16,6 +16,6 @@ patch: "403": description: 権限が不足している "404": - description: 見つからなかった + description: ユーザーが見つからなかった "500": description: サーバーエラー diff --git a/schema/paths/users/list/index.yml b/schema/paths/users/list/index.yml index 226c28a..b72e68a 100644 --- a/schema/paths/users/list/index.yml +++ b/schema/paths/users/list/index.yml @@ -17,7 +17,5 @@ get: description: 認証されていない "403": description: 権限が不足している - "404": - description: 見つからなかった "500": description: サーバーエラー