|
|
@ -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"]
|
|
|
|
}
|
|
|
|
}
|
|
|
|