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",