diff options
author | zhiayang <[email protected]> | 2024-03-30 19:12:37 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2024-03-30 19:12:37 -0400 |
commit | 4bef4e98f52c3ea57630a3cd1e0e2d078d67758b (patch) | |
tree | d40bd0af55ed6c9b959c87e3e38353a4e35a03d2 /schema | |
parent | fff1cbecdcc75302b6280a469ed31687cfc79776 (diff) | |
download | zmk-4bef4e98f52c3ea57630a3cd1e0e2d078d67758b.tar.gz zmk-4bef4e98f52c3ea57630a3cd1e0e2d078d67758b.zip |
feat(boards): Support board revisions in setup scripts.
* Make setup.sh/ps1 prompt for board revision for boards that have revisions
Diffstat (limited to 'schema')
-rw-r--r-- | schema/hardware-metadata.schema.json | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/schema/hardware-metadata.schema.json b/schema/hardware-metadata.schema.json index 4c2bdf3b73..9710c79239 100644 --- a/schema/hardware-metadata.schema.json +++ b/schema/hardware-metadata.schema.json @@ -16,7 +16,11 @@ "$defs": { "id": { "type": "string", - "pattern": "^[a-z0-9_]+$" + "pattern": "^[a-z0-9_]+(@([A-Z]|[0-9]+|([0-9]+(\\.[0-9]+){1,2})))?$" + }, + "revision": { + "type": "string", + "pattern": "[A-Z]|[0-9]+|([0-9]+(\\.[0-9]+){1,2})" }, "keyboard_siblings": { "type": "array", @@ -202,6 +206,15 @@ }, "exposes": { "$ref": "#/$defs/interconnects" + }, + "revisions": { + "type": "array", + "items": { + "$ref": "#/$defs/revision" + } + }, + "default_revision": { + "$ref": "#/$defs/revision" } } }, |