diff --git a/bids-validator/validators/json/schemas/data_dictionary.json b/bids-validator/validators/json/schemas/data_dictionary.json index 6873ca56b..75322abac 100644 --- a/bids-validator/validators/json/schemas/data_dictionary.json +++ b/bids-validator/validators/json/schemas/data_dictionary.json @@ -27,7 +27,21 @@ "description": "For categorical variables: a dictionary of possible values (keys) and their descriptions (values).", "patternProperties": { "^.+$": { - "type": "string" + "anyOf": [ + { "type": "string" }, + { + "type": "object", + "properties": { + "Description": { "type": "string" }, + "TermURL": { + "title": "TermURL", + "description": "URL pointing to a formal definition in an ontology available on the web.", + "type": "string", + "format": "uri" + } + } + } + ] } } }, diff --git a/bids-validator/validators/json/schemas/events.json b/bids-validator/validators/json/schemas/events.json index 208b941fe..73d27e47d 100644 --- a/bids-validator/validators/json/schemas/events.json +++ b/bids-validator/validators/json/schemas/events.json @@ -27,7 +27,21 @@ "description": "For categorical variables: a dictionary of possible values (keys) and their descriptions (values).", "patternProperties": { "^.+$": { - "type": "string" + "anyOf": [ + { "type": "string" }, + { + "type": "object", + "properties": { + "Description": { "type": "string" }, + "TermURL": { + "title": "TermURL", + "description": "URL pointing to a formal definition in an ontology available on the web.", + "type": "string", + "format": "uri" + } + } + } + ] } } },