X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/xdg-ninja.git/blobdiff_plain/89a2d42e13509b929cac40bb9cab22397b9c31d2..8e32e725b8eee1cd7abb3b744a1272d4f50d20a8:/json-schema/program.json diff --git a/json-schema/program.json b/json-schema/program.json index d569273..1fcf2d7 100644 --- a/json-schema/program.json +++ b/json-schema/program.json @@ -1,7 +1,7 @@ { - "$schema": "http://json-schema.org/draft-07/schema#", "title": "Program", "description": "Specification of files or folders in the $HOME folder for a program", + "type": "object", "properties": { "name": { "type": "string", @@ -12,7 +12,27 @@ "description": "List of files (or folders) associated with the program", "type": "array", "items": { - "$ref": "file.json" + "type": "object", + "properties": { + "path": { + "type": "string", + "description": "Path to file (or folder).", + "minLength": 1 + }, + "movable": { + "type": "boolean", + "description": "Is file (or folder) movable to a place other than $HOME." + }, + "help": { + "type": "string", + "description": "Help text for user. Supports markdown." + } + }, + "required": [ + "path", + "movable", + "help" + ] }, "minItems": 1 } @@ -21,4 +41,4 @@ "name", "files" ] -} \ No newline at end of file +}