From c344e2746611056a56778b0c19b584cace55b660 Mon Sep 17 00:00:00 2001 From: Stefan Appelhoff Date: Wed, 31 Aug 2022 11:31:09 +0200 Subject: [PATCH] fix: HEDVersion in JSON schema; follow up to #1496 --- .../validators/json/schemas/dataset_description.json | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/bids-validator/validators/json/schemas/dataset_description.json b/bids-validator/validators/json/schemas/dataset_description.json index ccf8ae025..d34b94633 100644 --- a/bids-validator/validators/json/schemas/dataset_description.json +++ b/bids-validator/validators/json/schemas/dataset_description.json @@ -10,7 +10,16 @@ "type": "string" }, "HEDVersion": { - "type": "string" + "anyOf": [ + { "type": "string" }, + { + "type": "array", + "items": { + "type": "string", + "pattern": "^(?:[a-zA-Z]+:)?(?:[a-zA-Z]+_)?(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)(?:-(?:(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+(?:[0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$" + } + } + ] }, "DatasetType": { "type": "string",