Skip to content

Commit 3b68b02

Browse files
authored
Merge pull request #3262 from OpenNeuroOrg/bids-validator-update
BIDS validator 2.0.1 updates
2 parents dde1c33 + dcd9625 commit 3b68b02

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

services/datalad/datalad_service/tasks/validator.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
logger = logging.getLogger('datalad_service.' + __name__)
1212

13-
DENO_VALIDATOR_VERSION = '2.0.0'
13+
DENO_VALIDATOR_VERSION = '2.0.1'
1414

1515
DENO_METADATA = {
1616
'validator': 'schema',
@@ -76,6 +76,10 @@ def issues_mutation(dataset_id, ref, issues, validator_metadata):
7676
"""
7777
Return the OpenNeuro mutation to update any validation issues.
7878
"""
79+
# Workaround for bad "affects" values - drop them
80+
for issue in issues["issues"]:
81+
if "affects" in issue and not isinstance(issue["affects"], str):
82+
del issue["affects"]
7983
validatorInput = {
8084
'datasetId': dataset_id,
8185
'id': ref,

0 commit comments

Comments
 (0)