-
Notifications
You must be signed in to change notification settings - Fork 21
Labels
Description
While validating on example data noticed that the following config wasn't being applied to derivatives:
{
"ignore": [
{ "code": "EMPTY_FILE" }
]
}Was able to fix by passing config object to validate call in src/validator/bids.ts:
bids-validator % git diff
diff --git a/src/validators/bids.ts b/src/validators/bids.ts
index 36d7ba1e..18ebb7fc 100644
--- a/src/validators/bids.ts
+++ b/src/validators/bids.ts
@@ -158,7 +158,7 @@ export async function validate(
await Promise.allSettled(
bidsDerivatives.map(async (promise) => {
const deriv = await promise
- derivativesSummary[deriv.name] = await validate(deriv, options)
+ derivativesSummary[deriv.name] = await validate(deriv, options, config)
return derivativesSummary[deriv.name]
}),
)