summaryrefslogtreecommitdiffstats
path: root/data/schemas/keymap.jsonschema
diff options
context:
space:
mode:
Diffstat (limited to 'data/schemas/keymap.jsonschema')
-rw-r--r--data/schemas/keymap.jsonschema17
1 files changed, 16 insertions, 1 deletions
diff --git a/data/schemas/keymap.jsonschema b/data/schemas/keymap.jsonschema
index 1b8d01bcc6..73aa7c5c22 100644
--- a/data/schemas/keymap.jsonschema
+++ b/data/schemas/keymap.jsonschema
@@ -7,7 +7,8 @@
"author": {"type": "string"},
"converter": {
"type": "string",
- "enum": ["elite_pi", "proton_c", "kb2040", "promicro_rp2040", "blok", "bit_c_pro", "stemcell", "bonsai_c4"]
+ "minLength": 1,
+ "pattern": "^[a-z][0-9a-z_]*$"
},
"host_language": {"$ref": "qmk.definitions.v1#/text_identifier"},
"keyboard": {"$ref": "qmk.definitions.v1#/text_identifier"},
@@ -20,6 +21,20 @@
"items": {"type": "string"}
}
},
+ "encoders": {
+ "type": "array",
+ "items": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "required": ["ccw", "cw"],
+ "properties": {
+ "ccw": {"type": "string"},
+ "cw": {"type": "string"}
+ }
+ }
+ }
+ },
"macros": {
"type": "array",
"items": {