]> glassweightruler.freedombox.rocks Git - xdg-ninja.git/blob - json-schema/program.json
Replace ~ with $HOME
[xdg-ninja.git] / json-schema / program.json
1 {
2 "title": "Program",
3 "description": "Specification of files or folders in the $HOME folder for a program",
4 "type": "object",
5 "properties": {
6 "name": {
7 "type": "string",
8 "description": "Name of the program",
9 "minLength": 1
10 },
11 "files": {
12 "description": "List of files (or folders) associated with the program",
13 "type": "array",
14 "items": {
15 "type": "object",
16 "properties": {
17 "path": {
18 "type": "string",
19 "description": "Path to file (or folder).",
20 "minLength": 1
21 },
22 "movable": {
23 "type": "boolean",
24 "description": "Is file (or folder) movable to a place other than $HOME."
25 },
26 "help": {
27 "type": "string",
28 "description": "Help text for user. Supports markdown."
29 }
30 },
31 "required": [
32 "path",
33 "movable",
34 "help"
35 ]
36 },
37 "minItems": 1
38 }
39 },
40 "required": [
41 "name",
42 "files"
43 ]
44 }