summaryrefslogtreecommitdiffstats
path: root/lib/python/qmk/cli/generate/info_json.py
diff options
context:
space:
mode:
authorZach White <skullydazed@gmail.com>2020-12-01 12:52:02 -0800
committerZach White <skullydazed@drpepper.org>2021-01-07 21:21:12 -0800
commitededff8556daff544633cb143cb6d939afd09014 (patch)
treefa7d69a513ec8f8d5dd23058c1ea650cb00944df /lib/python/qmk/cli/generate/info_json.py
parent95cbcef34fee3727a224fc13c727ea744fd869e7 (diff)
validate keyboard data with jsonschema
Diffstat (limited to 'lib/python/qmk/cli/generate/info_json.py')
-rwxr-xr-xlib/python/qmk/cli/generate/info_json.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/python/qmk/cli/generate/info_json.py b/lib/python/qmk/cli/generate/info_json.py
index 7e6654e45d..fba4b1c014 100755
--- a/lib/python/qmk/cli/generate/info_json.py
+++ b/lib/python/qmk/cli/generate/info_json.py
@@ -39,7 +39,7 @@ def generate_info_json(cli):
pared_down_json[key] = kb_info_json[key]
pared_down_json['layouts'] = {}
- if 'layouts' in pared_down_json:
+ if 'layouts' in kb_info_json:
for layout_name, layout in kb_info_json['layouts'].items():
pared_down_json['layouts'][layout_name] = {}
pared_down_json['layouts'][layout_name]['key_count'] = layout.get('key_count', len(layout['layout']))