Skip to content

Commit

Permalink
Merge pull request #165 from GiganticMinecraft/fix/toNullableQuestionId
Browse files Browse the repository at this point in the history
fix: QuestionId を nullable にする
  • Loading branch information
rito528 authored Sep 6, 2024
2 parents 865e85b + 8bb05b1 commit 93c6387
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/models/form.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ enum QuestionType {
}

model Question {
id: uint32;
/**
* id は送信側(frontend)ではなく、受信側(backend)で生成するため nullable である。
* しかし、更新時に限っては id が必要である。
*/
id?: uint32;

title: string;
description: string;
question_type: QuestionType;
Expand Down

0 comments on commit 93c6387

Please sign in to comment.