expanding the schemas

main
Nick Dumas 2 years ago
parent 6bd6a8406e
commit b6cd9100a5

@ -1,14 +1,16 @@
{ {
"$schema": "https://json-schema.org/draft/2020-12/schema", "$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "http://ndumas.com/schemas/myschema.json", "$id": "https://ndumas.com/schemas/note.json",
"title":"baseNote", "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",
"type": "string" "type": "string"
}, },
"aliases": { "aliases": {
"description":"alternate names for the notes",
"type": "array", "type": "array",
"items": { "items": {
"type":"string", "type":"string",

@ -0,0 +1,23 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://ndumas.com/schemas/post.json",
"title":"post",
"description":"properties all notes must have",
"type":"object",
"properties": {
"title": {
"$ref":"https://ndumas.com/schemas/note.json"
},
"date": {
"type":"date"
},
"series": {
"type": "array",
"items": {
"type":"string",
"uniqueItems": true
}
}
},
"required": ["title","aliases"]
}
Loading…
Cancel
Save