Skip to content

Commit

Permalink
Fix parsing/validation for 21939 (#22148)
Browse files Browse the repository at this point in the history
  • Loading branch information
zvecr authored Sep 27, 2023
1 parent 32de27b commit 4e86dca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/schemas/keyboard.jsonschema
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@
"speed_steps": {"$ref": "qmk.definitions.v1#/unsigned_int"},
"led_flush_limit": {"$ref": "qmk.definitions.v1#/unsigned_int"},
"led_process_limit": {"$ref": "qmk.definitions.v1#/unsigned_int"},
"react_on_keyup": {"$ref": "qmk.definitions.v1#/unsigned_int"},
"react_on_keyup": {"type": "boolean"},
"sleep": {"type": "boolean"},
"split_count": {
"type": "array",
Expand Down Expand Up @@ -460,7 +460,7 @@
"speed_steps": {"$ref": "qmk.definitions.v1#/unsigned_int"},
"led_flush_limit": {"$ref": "qmk.definitions.v1#/unsigned_int"},
"led_process_limit": {"$ref": "qmk.definitions.v1#/unsigned_int"},
"react_on_keyup": {"$ref": "qmk.definitions.v1#/unsigned_int"},
"react_on_keyup": {"type": "boolean"},
"sleep": {"type": "boolean"},
"split_count": {
"type": "array",
Expand Down
2 changes: 2 additions & 0 deletions lib/python/qmk/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,8 @@ def _config_to_json(key_type, config_value):
return list(map(str.strip, config_value.split(',')))

elif key_type == 'bool':
if isinstance(config_value, bool):
return config_value
return config_value in true_values

elif key_type == 'hex':
Expand Down

0 comments on commit 4e86dca

Please sign in to comment.