2022-11-05 18:30:09 +08:00
|
|
|
{
|
|
|
|
"$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,
|
2023-03-28 03:01:07 +08:00
|
|
|
"pattern": "^[A-Z][A-Zs_0-9]*$"
|
2022-11-05 18:30:09 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"ranges": {
|
|
|
|
"type": "object",
|
|
|
|
"propertyNames": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"additionalProperties": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"define"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"define": {"$ref": "#/definitions/define"}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"keycodes": {
|
|
|
|
"type": "object",
|
|
|
|
"propertyNames": {
|
2023-03-28 03:01:07 +08:00
|
|
|
"$ref": "qmk.definitions.v1#/hex_number_4d"
|
2022-11-05 18:30:09 +08:00
|
|
|
},
|
|
|
|
"additionalProperties": {
|
2023-03-28 03:01:07 +08:00
|
|
|
"type": "object", // use 'qmk.definitions.v1#/keycode_decl' when problem keycodes are removed
|
2022-11-05 18:30:09 +08:00
|
|
|
"required": [
|
|
|
|
"key"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"key": {"$ref": "#/definitions/define"},
|
|
|
|
"aliases": {
|
|
|
|
"type": "array",
|
|
|
|
"minItems": 1,
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|