Skip to content

Commit

Permalink
Merge pull request #2149 from effigies/rf/hed-to-bids
Browse files Browse the repository at this point in the history
feat: Pass hedCode as subcode to group errors
  • Loading branch information
rwblair authored Oct 9, 2024
2 parents 5991dbb + e118e49 commit c52a671
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bids-validator/src/validators/hed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ export async function hedValidate(
const location = hedIssue.file ? hedIssue.file.path : ''
context.dataset.issues.add({
code: hedOldToNewLookup[code],
// @ts-expect-error
subCode: hedIssue.hedIssue.hedCode, // Hidden property
location,
issueMessage: hedIssue.evidence,
})
Expand Down

0 comments on commit c52a671

Please sign in to comment.