Skip to content

Commit 39f987e

Browse files
Fix invalid selector syntax in stimuli sidecar schema
Change from invalid multiple AND selectors to proper OR logic using intersects() function. This resolves validator compatibility issues that were causing TypeError exceptions when parsing custom schemas. - Fix: Use intersects([suffix], ["audio", "video", "audiovideo", "image"]) - Before: Multiple separate suffix == conditions (invalid AND logic) - Result: Schema now validates successfully with bids-validator 2.1.0
1 parent 9225f0b commit 39f987e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/schema/rules/sidecars/stimuli.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44

55
Stimuli:
66
selectors:
7-
- suffix == "audio"
8-
- suffix == "video"
9-
- suffix == "audiovideo"
10-
- suffix == "image"
7+
- intersects([suffix], ["audio", "video", "audiovideo", "image"])
118
fields:
129
StimulusLicense: recommended
1310
Copyright: recommended

0 commit comments

Comments
 (0)