diff options
| author | Joel Challis <git@zvecr.com> | 2026-01-13 05:48:59 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-13 16:48:59 +1100 |
| commit | 7d66c11f378acd46e03506ff573a61912a1eda5e (patch) | |
| tree | f62a30c04d762adb572df0b914d526c14d1e9f73 | |
| parent | e391793f7317ca406989cea30dcd43ebbdb1f0e8 (diff) | |
Lint default dynamic keymap layer count (#25948)
| -rw-r--r-- | data/mappings/info_defaults.hjson | 3 | ||||
| -rw-r--r-- | data/schemas/keyboard.jsonschema | 11 |
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 @@ | |||
| 11 | "on_state": 1 | 11 | "on_state": 1 |
| 12 | }, | 12 | }, |
| 13 | "debounce": 5, | 13 | "debounce": 5, |
| 14 | "dynamic_keymap": { | ||
| 15 | "layer_count": 4 | ||
| 16 | }, | ||
| 14 | "features": { | 17 | "features": { |
| 15 | "command": false, | 18 | "command": false, |
| 16 | "console": false | 19 | "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 @@ | |||
| 333 | } | 333 | } |
| 334 | } | 334 | } |
| 335 | }, | 335 | }, |
| 336 | "dynamic_keymap": { | ||
| 337 | "type": "object", | ||
| 338 | "properties": { | ||
| 339 | "eeprom_max_addr": {"$ref": "./definitions.jsonschema#/unsigned_int"}, | ||
| 340 | "layer_count": { | ||
| 341 | "type": "integer", | ||
| 342 | "minimum": 1, | ||
| 343 | "maximum": 32 | ||
| 344 | } | ||
| 345 | } | ||
| 346 | }, | ||
| 336 | "eeprom": { | 347 | "eeprom": { |
| 337 | "properties": { | 348 | "properties": { |
| 338 | "driver": {"type": "string"}, | 349 | "driver": {"type": "string"}, |
