aboutsummaryrefslogtreecommitdiffstats
path: root/backend/models/question.py
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2020-12-28 21:36:53 +0000
committerGravatar GitHub <[email protected]>2020-12-28 21:36:53 +0000
commit3b11fd104aac24d4b14d60babbae9afd58c8ee22 (patch)
tree67c2ca29e0a709facd18fa18cb1d7714b72f24b0 /backend/models/question.py
parentFix deployment manifest (diff)
parentAdd handling of optional fields to submit endpoint (diff)
Merge pull request #48 from python-discord/ks123/optional-questions
Diffstat (limited to 'backend/models/question.py')
-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