expanding the schemas
continuous-integration/drone/push Build is failing Details

main
Nick Dumas 2 years ago
parent 7591979b9f
commit a252a1f1e6

@ -1,16 +1,29 @@
{ {
"$schema": "https://json-schema.org/draft/2020-12/schema", "$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", "title":"note",
"description":"properties all notes must have", "description":"properties all notes must have",
"type":"object", "type":"object",
"properties": { "properties": {
"title": { "title": {
"description":"Title of the note", "description":"note title",
"type": "string"
},
"description": {
"description":"short summary of the note's contents",
"type": "string" "type": "string"
}, },
"aliases": { "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", "type": "array",
"items": { "items": {
"type":"string", "type":"string",
@ -19,5 +32,5 @@
} }
} }
}, },
"required": ["title","aliases"] "required": ["title","aliases", "description", "tags"]
} }

@ -1,13 +1,13 @@
{ {
"$schema": "https://json-schema.org/draft/2020-12/schema", "$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", "title":"post",
"description":"Hugo blog posts", "description":"Hugo blog posts",
"type":"object", "type":"object",
"properties": { "properties": {
"note": { "note": {
"description":"base schema for notes", "description":"base schema for notes",
"$ref":"https://ndumas.com/schemas/note.json" "$ref":"https://schemas.ndumas.com/note.schema.json"
}, },
"date": { "date": {
"description": "publishing date", "description": "publishing date",
@ -23,5 +23,5 @@
} }
} }
}, },
"required": ["title","aliases"] "required": ["title","aliases", "date", "series"]
} }

Loading…
Cancel
Save