summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2023-02-11 13:45:51 +1100
committerGitHub <noreply@github.com>2023-02-11 13:45:51 +1100
commit99918945149f98cf73f9365b0ad49a2fc07d1152 (patch)
treed162dc0097445dfbd611cd9580cd04c4b31f3ac2 /data
parent01593501e30624af64abc1905944788f8e3b15ba (diff)
Generate encodermap output from keymap.json. (#18915)
Co-authored-by: Joel Challis <git@zvecr.com>
Diffstat (limited to 'data')
-rw-r--r--data/schemas/keymap.jsonschema14
1 files changed, 14 insertions, 0 deletions
diff --git a/data/schemas/keymap.jsonschema b/data/schemas/keymap.jsonschema
index 2fcd5f8a51..73aa7c5c22 100644
--- a/data/schemas/keymap.jsonschema
+++ b/data/schemas/keymap.jsonschema
@@ -21,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": {