commit 06f15c711c25e20eb4a11f695c42b046ab21d973 Author: Nick Dumas Date: Wed May 17 09:59:13 2023 -0400 adding draft schemas diff --git a/note.schema.json b/note.schema.json new file mode 100644 index 0000000..6158582 --- /dev/null +++ b/note.schema.json @@ -0,0 +1,23 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://ndumas.com/schemas/note.json", + "title":"note", + "description":"properties all notes must have", + "type":"object", + "properties": { + "title": { + "description":"Title of the note", + "type": "string" + }, + "aliases": { + "description":"alternate names for the notes", + "type": "array", + "items": { + "type":"string", + "uniqueItems": true, + "minItems": 1 + } + } + }, + "required": ["title","aliases"] +} diff --git a/post.schema.json b/post.schema.json new file mode 100644 index 0000000..4143d06 --- /dev/null +++ b/post.schema.json @@ -0,0 +1,27 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://ndumas.com/schemas/post.json", + "title":"post", + "description":"Hugo blog posts", + "type":"object", + "properties": { + "note": { + "description":"base schema for notes", + "$ref":"https://ndumas.com/schemas/note.json" + }, + "date": { + "description": "publishing date", + "type":"string", + "format":"date" + }, + "series": { + "description": "an array of names given to groups of related posts", + "type": "array", + "items": { + "type":"string", + "uniqueItems": true + } + } + }, + "required": ["title","aliases"] +}