]> glassweightruler.freedombox.rocks Git - xdg-ninja.git/blobdiff - json-schema/program.json
Update flake
[xdg-ninja.git] / json-schema / program.json
index d5692739a4e1c401c7019caa8f364001e16b1248..1fcf2d798510dfbacb52a4040b70f6c2d966c659 100644 (file)
@@ -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",
             "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
+}