From bc627cbf19d38534697ff66d5316eadc072ecee2 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sat, 10 Feb 2024 20:25:47 +0000 Subject: [PATCH] Wrote schema for checklist --- lib/schema.json | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/lib/schema.json b/lib/schema.json index e69de29..12da913 100644 --- a/lib/schema.json +++ b/lib/schema.json @@ -0,0 +1,43 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Section", + "type": "array", + "items": { + "type": "object", + "properties": { + "title": { "type": "string" }, + "slug": { "type": "string" }, + "description": { "type": "string" }, + "intro": { "type": "string" }, + "icon": { "type": "string" }, + "color": { "type": "string" }, + "checklist": { + "type": "array", + "items": { + "type": "object", + "properties": { + "point": { "type": "string" }, + "priority": { "type": "string", "enum": ["recommended", "optional", "advanced"] }, + "details": { "type": "string" } + }, + "required": ["point", "priority", "details"] + } + }, + "furtherLinks": { + "type": "array", + "items": { + "type": "object", + "properties": { + "title": { "type": "string" }, + "url": { "type": "string", "format": "uri" }, + "description": { "type": "string" } + }, + "required": ["title", "url", "description"] + }, + "minItems": 0 + } + }, + "required": ["title", "slug", "description", "intro", "checklist"], + "additionalProperties": false + } +}