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",
"$id": "http://ndumas.com/schemas/myschema.json",
"title":"baseNote",
"$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",

@ -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