aboutsummaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorJoel Challis2026-01-13 06:48:59 +0100
committerGitHub2026-01-13 06:48:59 +0100
commit7d66c11f378acd46e03506ff573a61912a1eda5e (patch)
treef62a30c04d762adb572df0b914d526c14d1e9f73 /data
parente391793f7317ca406989cea30dcd43ebbdb1f0e8 (diff)
Lint default dynamic keymap layer count (#25948)
Diffstat (limited to 'data')
-rw-r--r--data/mappings/info_defaults.hjson3
-rw-r--r--data/schemas/keyboard.jsonschema11
2 files changed, 14 insertions, 0 deletions
diff --git a/data/mappings/info_defaults.hjson b/data/mappings/info_defaults.hjson
index d1f1579c55..fd59dacac0 100644
--- a/data/mappings/info_defaults.hjson
+++ b/data/mappings/info_defaults.hjson
@@ -11,6 +11,9 @@
"on_state": 1
},
"debounce": 5,
+ "dynamic_keymap": {
+ "layer_count": 4
+ },
"features": {
"command": false,
"console": false
diff --git a/data/schemas/keyboard.jsonschema b/data/schemas/keyboard.jsonschema
index 57aeb3de22..d3a26923b5 100644
--- a/data/schemas/keyboard.jsonschema
+++ b/data/schemas/keyboard.jsonschema
@@ -333,6 +333,17 @@
}
}
},
+ "dynamic_keymap": {
+ "type": "object",
+ "properties": {
+ "eeprom_max_addr": {"$ref": "./definitions.jsonschema#/unsigned_int"},
+ "layer_count": {
+ "type": "integer",
+ "minimum": 1,
+ "maximum": 32
+ }
+ }
+ },
"eeprom": {
"properties": {
"driver": {"type": "string"},