From 8bb05b1c96bed23148b0de913a7a57205c295e0c Mon Sep 17 00:00:00 2001 From: rito528 <39003544+rito528@users.noreply.github.com> Date: Fri, 6 Sep 2024 17:54:06 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20QuestionId=20=E3=82=92=20nullable=20?= =?UTF-8?q?=E3=81=AB=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/models/form.tsp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/models/form.tsp b/src/models/form.tsp index 12b7c65..aede400 100644 --- a/src/models/form.tsp +++ b/src/models/form.tsp @@ -37,7 +37,12 @@ enum QuestionType { } model Question { - id: uint32; + /** + * id は送信側(frontend)ではなく、受信側(backend)で生成するため nullable である。 + * しかし、更新時に限っては id が必要である。 + */ + id?: uint32; + title: string; description: string; question_type: QuestionType;