Skip to content

Commit

Permalink
fix: HEDVersion in JSON schema; follow up to #1496
Browse files Browse the repository at this point in the history
  • Loading branch information
sappelhoff committed Aug 31, 2022
1 parent 7a818a4 commit c344e27
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion bids-validator/validators/json/schemas/dataset_description.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit c344e27

Please sign in to comment.