diff --git a/note.schema.json b/note.schema.json index 6158582..475d9e2 100644 --- a/note.schema.json +++ b/note.schema.json @@ -1,16 +1,29 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://ndumas.com/schemas/note.json", + "$id": "https://schemas.ndumas.com/note.schema.json", "title":"note", "description":"properties all notes must have", "type":"object", "properties": { "title": { - "description":"Title of the note", + "description":"note title", + "type": "string" + }, + "description": { + "description":"short summary of the note's contents", "type": "string" }, "aliases": { - "description":"alternate names for the notes", + "description":"alternate names for the note", + "type": "array", + "items": { + "type":"string", + "uniqueItems": true, + "minItems": 1 + } + }, + "tags": { + "description":"broad categories", "type": "array", "items": { "type":"string", @@ -19,5 +32,5 @@ } } }, - "required": ["title","aliases"] + "required": ["title","aliases", "description", "tags"] } diff --git a/post.schema.json b/post.schema.json index 4143d06..f819569 100644 --- a/post.schema.json +++ b/post.schema.json @@ -1,13 +1,13 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://ndumas.com/schemas/post.json", + "$id": "https://schemas.ndumas.com/post.schema.json", "title":"post", "description":"Hugo blog posts", "type":"object", "properties": { "note": { "description":"base schema for notes", - "$ref":"https://ndumas.com/schemas/note.json" + "$ref":"https://schemas.ndumas.com/note.schema.json" }, "date": { "description": "publishing date", @@ -23,5 +23,5 @@ } } }, - "required": ["title","aliases"] + "required": ["title","aliases", "date", "series"] }