2021-08-18 13:52:41 -07:00
|
|
|
{
|
2022-06-17 22:30:46 -07:00
|
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema#",
|
2021-08-18 13:52:41 -07:00
|
|
|
"$id": "qmk.keymap.v1",
|
|
|
|
"title": "Keymap Information",
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2021-08-20 02:11:49 -07:00
|
|
|
"author": {"type": "string"},
|
2022-10-20 18:21:17 -07:00
|
|
|
"converter": {
|
|
|
|
"type": "string",
|
2023-01-09 01:23:02 -08:00
|
|
|
"minLength": 1,
|
|
|
|
"pattern": "^[a-z][0-9a-z_]*$"
|
2022-10-20 18:21:17 -07:00
|
|
|
},
|
2021-11-22 11:11:35 -08:00
|
|
|
"host_language": {"$ref": "qmk.definitions.v1#/text_identifier"},
|
2021-08-18 13:52:41 -07:00
|
|
|
"keyboard": {"$ref": "qmk.definitions.v1#/text_identifier"},
|
|
|
|
"keymap": {"$ref": "qmk.definitions.v1#/text_identifier"},
|
|
|
|
"layout": {"$ref": "qmk.definitions.v1#/layout_macro"},
|
|
|
|
"layers": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {"type": "string"}
|
|
|
|
}
|
|
|
|
},
|
2023-02-10 18:45:51 -08:00
|
|
|
"encoders": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "object",
|
|
|
|
"required": ["ccw", "cw"],
|
|
|
|
"properties": {
|
|
|
|
"ccw": {"type": "string"},
|
|
|
|
"cw": {"type": "string"}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2021-11-22 11:11:35 -08:00
|
|
|
"macros": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"oneOf": [
|
|
|
|
{
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": false,
|
|
|
|
"properties": {
|
|
|
|
"action": {
|
|
|
|
"type": "string",
|
2022-08-28 11:24:11 -07:00
|
|
|
"enum": ["beep", "delay", "down", "tap", "up"]
|
2021-11-22 11:11:35 -08:00
|
|
|
},
|
|
|
|
"keycodes": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "qmk.definitions.v1#/text_identifier"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"duration": {
|
|
|
|
"$ref": "qmk.definitions.v1#/unsigned_int"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-03-27 12:01:07 -07:00
|
|
|
"keycodes": {"$ref": "qmk.definitions.v1#/keycode_decl_array"},
|
2021-08-18 13:52:41 -07:00
|
|
|
"config": {"$ref": "qmk.keyboard.v1"},
|
|
|
|
"notes": {
|
2022-06-17 22:30:46 -07:00
|
|
|
"type": "string"
|
2021-08-18 13:52:41 -07:00
|
|
|
}
|
2022-02-28 12:02:39 -08:00
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"keyboard",
|
|
|
|
"layout",
|
|
|
|
"layers"
|
|
|
|
]
|
2021-11-22 11:11:35 -08:00
|
|
|
}
|