Skip to content

Commit

Permalink
feat: Pass hedCode as subcode to group errors
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Oct 3, 2024
1 parent 0a2530b commit e118e49
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 e118e49

Please sign in to comment.