Skip to content

[bug] Config File Not Applied to Derivative Data/Summary #344

@bendhouseart

Description

@bendhouseart

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]
       }),
     )

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions