Skip to content

Commit

Permalink
ENH: Enable structured Level descriptions for TSV columns (#1837)
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies authored Nov 3, 2023
1 parent 44679a8 commit efd5e76
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
16 changes: 15 additions & 1 deletion bids-validator/validators/json/schemas/data_dictionary.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
]
}
}
},
Expand Down
16 changes: 15 additions & 1 deletion bids-validator/validators/json/schemas/events.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
]
}
}
},
Expand Down

0 comments on commit efd5e76

Please sign in to comment.