From ce65a020fb510567e2e49fccea7017ca4cb34454 Mon Sep 17 00:00:00 2001 From: rito528 <39003544+rito528@users.noreply.github.com> Date: Tue, 24 Oct 2023 18:03:08 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20/form=E3=81=AEGET=E3=81=A7=E8=BF=94?= =?UTF-8?q?=E3=81=99=E6=83=85=E5=A0=B1=E3=82=92=E3=80=81=E3=83=95=E3=82=A9?= =?UTF-8?q?=E3=83=BC=E3=83=A0=E5=85=A8=E4=BD=93=E3=81=A7=E3=81=AF=E3=81=AA?= =?UTF-8?q?=E3=81=8F=E6=9C=80=E4=BD=8E=E9=99=90=E3=81=AE=E6=83=85=E5=A0=B1?= =?UTF-8?q?=E3=81=AE=E3=81=BF=E8=BF=94=E3=81=99=E3=82=88=E3=81=86=E3=81=AB?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- schema/paths/forms/index.yml | 2 +- schema/types/forms/definitions.yml | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/schema/paths/forms/index.yml b/schema/paths/forms/index.yml index 264066d..bdb0fb5 100644 --- a/schema/paths/forms/index.yml +++ b/schema/paths/forms/index.yml @@ -77,7 +77,7 @@ get: uniqueItems: true minItems: 1 items: - $ref: "../../types/forms/definitions.yml#/definitions/form" + $ref: "../../types/forms/definitions.yml#/definitions/simple_form" "400": $ref: "../../errors/errorResponses.yml#/components/responses/syntaxError" "401": diff --git a/schema/types/forms/definitions.yml b/schema/types/forms/definitions.yml index 4b9b398..44b8460 100644 --- a/schema/types/forms/definitions.yml +++ b/schema/types/forms/definitions.yml @@ -26,6 +26,20 @@ definitions: required: - id - title + simple_form: + description: フォームの最低限必要な情報のみを集めたもの。 + type: object + properties: + id: + readOnly: true + allOf: + - $ref: "./components.yml#/components/schemas/id" + title: + $ref: "./components.yml#/components/schemas/title" + description: + $ref: "./components.yml#/components/schemas/description" + response_period: + $ref: "./components.yml#/components/schemas/response_period" questions: description: 質問の配列 type: object