From 22deeca4ffe7e06cadd859ef98c8d954c368663c Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Thu, 2 Nov 2023 16:23:49 -0400 Subject: [PATCH] ENH: Enable structured Level descriptions for TSV columns --- .../validators/json/schemas/data_dictionary.json | 16 +++++++++++++++- .../validators/json/schemas/events.json | 16 +++++++++++++++- 2 files changed, 30 insertions(+), 2 deletions(-) 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" + } + } + } + ] } } },