You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Sidecars with a space before the colon after "HED" are not validated #975
BidsDataset.create decides whether a JSON sidecar has HED by searching the raw file text for the
exact characters "HED": (src/bids/types/dataset.js:205):
fails the check. The sidecar is dropped without any issue, and the dataset reports no errors.
How to reproduce
Make a dataset with a dataset_description.json containing "HEDVersion": "8.4.0" and a task-go_events.json containing the sidecar above. Validate it with BidsDataset.create and dataset.validate().
Written "HED":, the sidecar is loaded and Blech is reported as TAG_INVALID.
Written "HED" :, no sidecar is loaded and nothing is reported.
Expected
Every sidecar that has a HED key is validated, however the JSON is spaced.
Suggested fix
Parse the JSON first, then skip the sidecar only if none of its top-level values is an object with a HED key. Add a test with "HED" : and one with a line break before the colon.
Activity
VisLab commentedon Nov 11, 2026
Closed by PR #977