aboutsummaryrefslogtreecommitdiffstats
path: root/backend/models
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-12-28 14:23:54 +0200
committerGravatar ks129 <[email protected]>2020-12-28 14:23:54 +0200
commit2a5cf9f6d040ae1914d47b539147a1d76e59d76c (patch)
tree2fdc8942dcf68f3823342da352ba4f07a3f1f9d6 /backend/models
parentFix deployment manifest (diff)
Add required field to question model
Diffstat (limited to 'backend/models')
-rw-r--r--backend/models/question.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/models/question.py b/backend/models/question.py
index 3b98024..7daeb5a 100644
--- a/backend/models/question.py
+++ b/backend/models/question.py
@@ -12,6 +12,7 @@ class Question(BaseModel):
name: str
type: str
data: dict[str, t.Any]
+ required: bool
class Config:
allow_population_by_field_name = True