From 46789297911ecbd79e9d9e7bec69f9b3076f4223 Mon Sep 17 00:00:00 2001 From: zhiayang Date: Fri, 9 Feb 2024 12:09:43 -0500 Subject: [PATCH] update schema again --- schema/hardware-metadata.schema.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/schema/hardware-metadata.schema.json b/schema/hardware-metadata.schema.json index a4b3c5fb..b4efe86b 100644 --- a/schema/hardware-metadata.schema.json +++ b/schema/hardware-metadata.schema.json @@ -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",