Skip to content

Commit

Permalink
feat: questionに対してis_requiredパラメータを追加する
Browse files Browse the repository at this point in the history
  • Loading branch information
rito528 committed Aug 15, 2023
1 parent 557dc66 commit ae138b0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions schema/types/forms/components.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ components:
- MULTIPLE
- SINGLE
example: TEXT
is_required:
description: |
質問に対する解答を必須にする。
デフォルトはfalseで、trueだと有効になる。
type: boolean
example: false
question:
description: 質問
type: object
Expand All @@ -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
Expand Down

0 comments on commit ae138b0

Please sign in to comment.