Skip to content

Commit

Permalink
update schema to handle revisions
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiayang committed Feb 9, 2024
1 parent 6a832ab commit 27ab8a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/boards/arm/mikoto/mikoto_520.zmk.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
file_format: "1"
id: mikoto_520
id: [email protected]
name: Mikoto 5.20 (deprecated)
type: board
arch: arm
Expand Down
5 changes: 3 additions & 2 deletions schema/hardware-metadata.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +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"
"type": "string",
"pattern": "[A-Z]|[0-9]+|([0-9]+(\\.[0-9]+){1,2})"
},
"keyboard_siblings": {
"type": "array",
Expand Down

0 comments on commit 27ab8a7

Please sign in to comment.