From ae138b0e5c588381d59bb4a3cb7bddb5045a2319 Mon Sep 17 00:00:00 2001 From: rito528 <39003544+rito528@users.noreply.github.com> Date: Tue, 15 Aug 2023 23:02:55 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20question=E3=81=AB=E5=AF=BE=E3=81=97?= =?UTF-8?q?=E3=81=A6is=5Frequired=E3=83=91=E3=83=A9=E3=83=A1=E3=83=BC?= =?UTF-8?q?=E3=82=BF=E3=82=92=E8=BF=BD=E5=8A=A0=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- schema/types/forms/components.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/schema/types/forms/components.yml b/schema/types/forms/components.yml index d74f9a8..1f5c84d 100644 --- a/schema/types/forms/components.yml +++ b/schema/types/forms/components.yml @@ -87,6 +87,12 @@ components: - MULTIPLE - SINGLE example: TEXT + is_required: + description: | + 質問に対する解答を必須にする。 + デフォルトはfalseで、trueだと有効になる。 + type: boolean + example: false question: description: 質問 type: object @@ -99,6 +105,8 @@ components: $ref: "#/components/schemas/question_description" question_type: $ref: "#/components/schemas/question_type" + is_required: + $ref: "#/components/schemas/is_required" questions: description: 質問の配列 type: array