diff --git a/schemas/note.schema.json b/schemas/note.schema.json new file mode 100644 index 0000000..0611cdd --- /dev/null +++ b/schemas/note.schema.json @@ -0,0 +1,33 @@ +cd ~/mindnet +mkdir -p schemas +cat > schemas/note.schema.json << 'JSON' +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "mindnet_note", + "type": "object", + "required": ["note_id", "title", "type", "status", "created", "path"], + "properties": { + "note_id": { "type": "string" }, + "title": { "type": "string" }, + "type": { "type": "string" }, + "status": { "type": "string" }, + "created": { "type": "string" }, + "updated": { "type": "string" }, + "tags": { "type": "array", "items": { "type": "string" } }, + "area": { "type": "string" }, + "project": { "type": "string" }, + "priority": { "type": "number" }, + "effort_min": { "type": "number" }, + "due": { "type": "string" }, + "people": { "type": "array", "items": { "type": "string" } }, + "aliases": { "type": "array", "items": { "type": "string" } }, + "references": { "type": "array", "items": { "type": "string" } }, + "depends_on": { "type": "array", "items": { "type": "string" } }, + "assigned_to":{ "type": "array", "items": { "type": "string" } }, + "lang": { "type": "string" }, + "path": { "type": "string" }, + "hash_fulltext": { "type": "string" } + }, + "additionalProperties": true +} +JSON