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: サーバーエラー