mirror of
https://github.com/kemko/qmk_firmware.git
synced 2026-01-01 15:55:45 +03:00
QMK Userspace (#22222)
Co-authored-by: Duncan Sutherland <dunk2k_2000@hotmail.com>
This commit is contained in:
@@ -177,5 +177,23 @@
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 1
|
||||
},
|
||||
"keyboard_keymap_tuple": {
|
||||
"type": "array",
|
||||
"prefixItems": [
|
||||
{ "$ref": "#/keyboard" },
|
||||
{ "$ref": "#/filename" }
|
||||
],
|
||||
"unevaluatedItems": false
|
||||
},
|
||||
"json_file_path": {
|
||||
"type": "string",
|
||||
"pattern": "^[0-9a-z_/\\-]+\\.json$"
|
||||
},
|
||||
"build_target": {
|
||||
"oneOf": [
|
||||
{ "$ref": "#/keyboard_keymap_tuple" },
|
||||
{ "$ref": "#/json_file_path" }
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
14
data/schemas/user_repo_v0.jsonschema
Normal file
14
data/schemas/user_repo_v0.jsonschema
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema#",
|
||||
"$id": "qmk.user_repo.v0",
|
||||
"title": "User Repository Information",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"userspace_version"
|
||||
],
|
||||
"properties": {
|
||||
"userspace_version": {
|
||||
"type": "string",
|
||||
},
|
||||
}
|
||||
}
|
||||
22
data/schemas/user_repo_v1.jsonschema
Normal file
22
data/schemas/user_repo_v1.jsonschema
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema#",
|
||||
"$id": "qmk.user_repo.v1",
|
||||
"title": "User Repository Information",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"userspace_version",
|
||||
"build_targets"
|
||||
],
|
||||
"properties": {
|
||||
"userspace_version": {
|
||||
"type": "string",
|
||||
"enum": ["1.0"]
|
||||
},
|
||||
"build_targets": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "qmk.definitions.v1#/build_target"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user