wip: support for custom keycodes in json
This commit is contained in:
parent
ac4849df13
commit
0a33ce0659
5 changed files with 33 additions and 4 deletions
|
|
@ -12,6 +12,12 @@
|
|||
"minLength": 1,
|
||||
"pattern": "^[0-9a-z_]*$"
|
||||
},
|
||||
"keycode": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 250,
|
||||
"pattern": "^[A-Z_][0-9A-Z_()]*$"
|
||||
},
|
||||
"hex_number_2d": {
|
||||
"type": "string",
|
||||
"pattern": "^0x[0-9A-F]{2}$"
|
||||
|
|
|
|||
|
|
@ -77,6 +77,10 @@
|
|||
"lto": {"type": "boolean"},
|
||||
}
|
||||
},
|
||||
"custom_keycodes": {
|
||||
"type": "array",
|
||||
"items": {"$ref": "qmk.definitions.v1#/keycode"}
|
||||
},
|
||||
"diode_direction": {
|
||||
"type": "string",
|
||||
"enum": ["COL2ROW", "ROW2COL"]
|
||||
|
|
|
|||
|
|
@ -5,6 +5,11 @@
|
|||
"type": "object",
|
||||
"properties": {
|
||||
"author": {"type": "string"},
|
||||
"config": {"$ref": "qmk.keyboard.v1"},
|
||||
"custom_keycodes": {
|
||||
"type": "array",
|
||||
"items": {"$ref": "qmk.definitions.v1#/keycode"}
|
||||
},
|
||||
"keyboard": {"$ref": "qmk.definitions.v1#/text_identifier"},
|
||||
"keymap": {"$ref": "qmk.definitions.v1#/text_identifier"},
|
||||
"layout": {"$ref": "qmk.definitions.v1#/layout_macro"},
|
||||
|
|
@ -12,13 +17,12 @@
|
|||
"type": "array",
|
||||
"items": {
|
||||
"type": "array",
|
||||
"items": {"type": "string"}
|
||||
"items": {"$ref": "qmk.definitions.v1#/keycode"}
|
||||
}
|
||||
},
|
||||
"config": {"$ref": "qmk.keyboard.v1"},
|
||||
"notes": {
|
||||
"type": "string",
|
||||
"description": "asdf"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue