feat: mvp
This commit is contained in:
43
schemas/config.schema.json
Normal file
43
schemas/config.schema.json
Normal file
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"devicePath": {
|
||||
"type": "string"
|
||||
},
|
||||
"logLevel": {
|
||||
"type": "string",
|
||||
"enum": ["trace", "debug", "info", "warn", "error", "critical"],
|
||||
"default": "info"
|
||||
},
|
||||
"keyboard_layout": {
|
||||
"type": "object",
|
||||
"patternProperties": {
|
||||
"^row[0-4]+": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"keys": {
|
||||
"type": "object",
|
||||
"patternProperties": {
|
||||
"^key[0-3]+$": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"script": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": ["script"],
|
||||
"additionalProperties": false
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": ["keys"],
|
||||
"additionalProperties": false
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": ["keyboard_layout", "devicePath"],
|
||||
"additionalProperties": false
|
||||
}
|
||||
Reference in New Issue
Block a user