From 94b20abaa510b3673a4f0b1f723a9682a5cf0a45 Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Mon, 30 Nov 2020 14:33:20 +0000 Subject: Update SCHEMA.md --- SCHEMA.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/SCHEMA.md b/SCHEMA.md index 72e63da..60bfac0 100644 --- a/SCHEMA.md +++ b/SCHEMA.md @@ -3,17 +3,17 @@ Since MongoDB has no set schema, we document it here to document what our objects should look like. If you add new properties or remove them from objects **make sure to update them here**. In this document: -- [Form structure](#Form_structure) - - [Form features](#Form_features) - - [Form question](#Form_question) +- [Form structure](#form-structure) + - [Form features](#form-features) + - [Form question](#form-question) ## Form structure | 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 | +| `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 | | | | | | ### Form features @@ -32,8 +32,8 @@ In this document: | ------ | ---------------------------------------- | ------------------------------------------------ | -------------------- | | `id` | string | Unique identifier of the question | `"aabbcc"` | | `name` | string | Name of the question | `"What's the time?"` | -| `type` | one of [Question types](#Question_types) | The type of input for this question | `"radio"` | -| `data` | [Question specific data](#Question_data) | Any specific data for the question type selected | Documented below | +| `type` | one of [Question types](#question-types) | The type of input for this question | `"radio"` | +| `data` | [Question specific data](#question-data) | Any specific data for the question type selected | Documented below | #### Question types -- cgit v1.2.3