From 1b39e70687532c8f9868a31c7f829da1e72c0ea8 Mon Sep 17 00:00:00 2001 From: rito528 <39003544+rito528@users.noreply.github.com> Date: Sun, 19 Nov 2023 22:01:01 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20comment=E3=81=AEproperty=E3=81=ABanswer?= =?UTF-8?q?=5Fid=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- schema/types/forms/components.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/schema/types/forms/components.yml b/schema/types/forms/components.yml index c5a9d42..0c47bf5 100644 --- a/schema/types/forms/components.yml +++ b/schema/types/forms/components.yml @@ -150,6 +150,11 @@ components: minItems: 1 items: $ref: "#/components/schemas/question" + answer_id: + description: 回答のID + type: integer + minimum: 0 + example: 0 answer: description: 質問に対する回答 type: object @@ -200,6 +205,8 @@ components: readOnly: true allOf: - $ref: "#/components/schemas/comment_id" + answer_id: + $ref: "#/components/schemas/answer_id" content: $ref: "#/components/schemas/comment_content" comment_for_edit: