2021-08-19 04:52:41 +08:00
|
|
|
{
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
|
|
"$id": "qmk.keymap.v1",
|
|
|
|
"title": "Keymap Information",
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2021-08-20 17:11:49 +08:00
|
|
|
"author": {"type": "string"},
|
2021-11-23 03:11:35 +08:00
|
|
|
"host_language": {"$ref": "qmk.definitions.v1#/text_identifier"},
|
2021-08-19 04:52:41 +08: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"}
|
|
|
|
}
|
|
|
|
},
|
2021-11-23 03:11:35 +08:00
|
|
|
"macros": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"oneOf": [
|
|
|
|
{
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": false,
|
|
|
|
"properties": {
|
|
|
|
"action": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": ['beep', 'delay', 'down', 'tap', 'up']
|
|
|
|
},
|
|
|
|
"keycodes": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "qmk.definitions.v1#/text_identifier"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"duration": {
|
|
|
|
"$ref": "qmk.definitions.v1#/unsigned_int"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2021-08-19 04:52:41 +08:00
|
|
|
"config": {"$ref": "qmk.keyboard.v1"},
|
|
|
|
"notes": {
|
|
|
|
"type": "string",
|
|
|
|
"description": "asdf"
|
|
|
|
}
|
2022-03-01 04:02:39 +08:00
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"keyboard",
|
|
|
|
"layout",
|
|
|
|
"layers"
|
|
|
|
]
|
2021-11-23 03:11:35 +08:00
|
|
|
}
|