summaryrefslogtreecommitdiff
path: root/data/schemas/definitions.jsonschema
diff options
context:
space:
mode:
Diffstat (limited to 'data/schemas/definitions.jsonschema')
-rw-r--r--data/schemas/definitions.jsonschema18
1 files changed, 18 insertions, 0 deletions
diff --git a/data/schemas/definitions.jsonschema b/data/schemas/definitions.jsonschema
index 441e6395cf..ea29343d0a 100644
--- a/data/schemas/definitions.jsonschema
+++ b/data/schemas/definitions.jsonschema
@@ -177,5 +177,23 @@
"type": "integer",
"minimum": 0,
"maximum": 1
+ },
+ "keyboard_keymap_tuple": {
+ "type": "array",
+ "prefixItems": [
+ { "$ref": "#/keyboard" },
+ { "$ref": "#/filename" }
+ ],
+ "unevaluatedItems": false
+ },
+ "json_file_path": {
+ "type": "string",
+ "pattern": "^[0-9a-z_/\\-]+\\.json$"
+ },
+ "build_target": {
+ "oneOf": [
+ { "$ref": "#/keyboard_keymap_tuple" },
+ { "$ref": "#/json_file_path" }
+ ]
}
}