From 9a6a3abbc166a6136c5e678b043c7176f89ebefc Mon Sep 17 00:00:00 2001 From: ks129 <45097959+ks129@users.noreply.github.com> Date: Thu, 10 Dec 2020 21:27:03 +0200 Subject: Add form name and description to SCHEMA.md --- SCHEMA.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/SCHEMA.md b/SCHEMA.md index e86524c..b37ed1d 100644 --- a/SCHEMA.md +++ b/SCHEMA.md @@ -14,10 +14,11 @@ In this document: | Field | Type | Description | Example | | ----------- | ---------------------------------------- | ----------------------------------------------------------------------------------------- | --------------------------- | -| `id` | Unique identifier | A user selected, unique, descriptive identifier (used in URL routes, so no spaces) | `"ban-appeals"` | -| `features` | List of [form features](#form-features) | A list of features to change the behaviour of the form, described in the features section | `["OPEN", "COLLECT_EMAIL"]` | -| `questions` | List of [form questions](#form-question) | The list of questions to render on a specific form | Too long! See below | -| | | | | +| `id` | Unique identifier | A user selected, unique, descriptive identifier (used in URL routes, so no spaces) | `"ban-appeals"` | +| `features` | List of [form features](#form-features) | A list of features to change the behaviour of the form, described in the features section | `["OPEN", "COLLECT_EMAIL"]` | +| `questions` | List of [form questions](#form-question) | The list of questions to render on a specific form | Too long! See below | +| `name` | String | Name of the form | `"Summer Code Jam 2100"` | +| `description` | String | Form description | `"This is my amazing form description."` | ### Form features -- cgit v1.2.3 From bb4b3641f908b0c9e39d1662f7dcfd2b1b634462 Mon Sep 17 00:00:00 2001 From: ks129 <45097959+ks129@users.noreply.github.com> Date: Thu, 10 Dec 2020 22:00:35 +0200 Subject: Add name and description fields to Form model --- backend/models/form.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/models/form.py b/backend/models/form.py index a8c5f92..8d7fe9b 100644 --- a/backend/models/form.py +++ b/backend/models/form.py @@ -12,6 +12,8 @@ class Form(BaseModel): id: str = Field(alias="_id") features: t.List[str] questions: t.List[Question] + name: str + description: str class Config: allow_population_by_field_name = True -- cgit v1.2.3