diff options
| author | Nick Brassel <nick@tzarc.org> | 2023-11-28 07:53:43 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-28 07:53:43 +1100 |
| commit | 5501e804ff8d41ce656061b91896c4ac8c681d78 (patch) | |
| tree | 6a655fbceaeab67cf727dbe4318721407dd31824 /data | |
| parent | 094357c40347e8a5db36578851f1af34a92e9f68 (diff) | |
QMK Userspace (#22222)
Co-authored-by: Duncan Sutherland <dunk2k_2000@hotmail.com>
Diffstat (limited to 'data')
| -rw-r--r-- | data/schemas/definitions.jsonschema | 18 | ||||
| -rw-r--r-- | data/schemas/user_repo_v0.jsonschema | 14 | ||||
| -rw-r--r-- | data/schemas/user_repo_v1.jsonschema | 22 |
3 files changed, 54 insertions, 0 deletions
diff --git a/data/schemas/definitions.jsonschema b/data/schemas/definitions.jsonschema index 441e6395cf..ea29343d0a 100644 --- a/data/schemas/definitions.jsonschema +++ b/data/schemas/definitions.jsonschema | |||
| @@ -177,5 +177,23 @@ | |||
| 177 | "type": "integer", | 177 | "type": "integer", |
| 178 | "minimum": 0, | 178 | "minimum": 0, |
| 179 | "maximum": 1 | 179 | "maximum": 1 |
| 180 | }, | ||
| 181 | "keyboard_keymap_tuple": { | ||
| 182 | "type": "array", | ||
| 183 | "prefixItems": [ | ||
| 184 | { "$ref": "#/keyboard" }, | ||
| 185 | { "$ref": "#/filename" } | ||
| 186 | ], | ||
| 187 | "unevaluatedItems": false | ||
| 188 | }, | ||
| 189 | "json_file_path": { | ||
| 190 | "type": "string", | ||
| 191 | "pattern": "^[0-9a-z_/\\-]+\\.json$" | ||
| 192 | }, | ||
| 193 | "build_target": { | ||
| 194 | "oneOf": [ | ||
| 195 | { "$ref": "#/keyboard_keymap_tuple" }, | ||
| 196 | { "$ref": "#/json_file_path" } | ||
| 197 | ] | ||
| 180 | } | 198 | } |
| 181 | } | 199 | } |
diff --git a/data/schemas/user_repo_v0.jsonschema b/data/schemas/user_repo_v0.jsonschema new file mode 100644 index 0000000000..b18ac50428 --- /dev/null +++ b/data/schemas/user_repo_v0.jsonschema | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | { | ||
| 2 | "$schema": "https://json-schema.org/draft/2020-12/schema#", | ||
| 3 | "$id": "qmk.user_repo.v0", | ||
| 4 | "title": "User Repository Information", | ||
| 5 | "type": "object", | ||
| 6 | "required": [ | ||
| 7 | "userspace_version" | ||
| 8 | ], | ||
| 9 | "properties": { | ||
| 10 | "userspace_version": { | ||
| 11 | "type": "string", | ||
| 12 | }, | ||
| 13 | } | ||
| 14 | } | ||
diff --git a/data/schemas/user_repo_v1.jsonschema b/data/schemas/user_repo_v1.jsonschema new file mode 100644 index 0000000000..6cdf758685 --- /dev/null +++ b/data/schemas/user_repo_v1.jsonschema | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | { | ||
| 2 | "$schema": "https://json-schema.org/draft/2020-12/schema#", | ||
| 3 | "$id": "qmk.user_repo.v1", | ||
| 4 | "title": "User Repository Information", | ||
| 5 | "type": "object", | ||
| 6 | "required": [ | ||
| 7 | "userspace_version", | ||
| 8 | "build_targets" | ||
| 9 | ], | ||
| 10 | "properties": { | ||
| 11 | "userspace_version": { | ||
| 12 | "type": "string", | ||
| 13 | "enum": ["1.0"] | ||
| 14 | }, | ||
| 15 | "build_targets": { | ||
| 16 | "type": "array", | ||
| 17 | "items": { | ||
| 18 | "$ref": "qmk.definitions.v1#/build_target" | ||
| 19 | } | ||
| 20 | } | ||
| 21 | } | ||
| 22 | } | ||
