From e118e49d3711dcba354c0a99354d12aae52da71d Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Thu, 3 Oct 2024 16:40:08 -0400 Subject: [PATCH] feat: Pass hedCode as subcode to group errors --- bids-validator/src/validators/hed.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bids-validator/src/validators/hed.ts b/bids-validator/src/validators/hed.ts index f5a9254ad..cd832f960 100644 --- a/bids-validator/src/validators/hed.ts +++ b/bids-validator/src/validators/hed.ts @@ -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, })