Skip to content

Commit c52a671

Browse files
authored
Merge pull request #2149 from effigies/rf/hed-to-bids
feat: Pass hedCode as subcode to group errors
2 parents 5991dbb + e118e49 commit c52a671

File tree

1 file changed

+2
-0
lines changed
  • bids-validator/src/validators

1 file changed

+2
-0
lines changed

bids-validator/src/validators/hed.ts

+2
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ export async function hedValidate(
9090
const location = hedIssue.file ? hedIssue.file.path : ''
9191
context.dataset.issues.add({
9292
code: hedOldToNewLookup[code],
93+
// @ts-expect-error
94+
subCode: hedIssue.hedIssue.hedCode, // Hidden property
9395
location,
9496
issueMessage: hedIssue.evidence,
9597
})

0 commit comments

Comments
 (0)