mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-26 21:26:46 +00:00
a69ab05dd6
* Initial DD keycode migration * Sort magic keycodes
58 lines
1.5 KiB
Plaintext
58 lines
1.5 KiB
Plaintext
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema#",
|
|
"$id": "qmk.keycodes.v1",
|
|
"title": "Keycode Information",
|
|
"type": "object",
|
|
"definitions": {
|
|
"define": {
|
|
"type": "string",
|
|
"minLength": 2,
|
|
"maxLength": 50,
|
|
"pattern": "^[A-Zs_0-9]*$"
|
|
},
|
|
"hex_number_4d": {
|
|
"type": "string",
|
|
"pattern": "^0x[0-9A-F]{4}$"
|
|
}
|
|
},
|
|
"properties": {
|
|
"ranges": {
|
|
"type": "object",
|
|
"propertyNames": {
|
|
"type": "string"
|
|
},
|
|
"additionalProperties": {
|
|
"type": "object",
|
|
"required": [
|
|
"define"
|
|
],
|
|
"properties": {
|
|
"define": {"$ref": "#/definitions/define"}
|
|
}
|
|
}
|
|
},
|
|
"keycodes": {
|
|
"type": "object",
|
|
"propertyNames": {
|
|
"$ref": "#/definitions/hex_number_4d"
|
|
},
|
|
"additionalProperties": {
|
|
"type": "object",
|
|
"required": [
|
|
"key"
|
|
],
|
|
"properties": {
|
|
"key": {"$ref": "#/definitions/define"},
|
|
"aliases": {
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|