File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
packages/openneuro-app/src/scripts/workers Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 22import { fileListToTree , validate } from "../utils/schema-validator.js"
33import type { BIDSValidatorIssues } from "./worker-interface"
44
5+ const config = {
6+ error : [
7+ { code : 'NO_AUTHORS' } ,
8+ { code : 'SUBJECT_FOLDERS' } , // bids-standard/bids-specification#1928 downgrades to warning
9+ { code : 'EMPTY_DATASET_NAME' } ,
10+ ]
11+ }
12+
13+ const options = {
14+ json : true ,
15+ /* Enable after https://github.com/bids-standard/bids-validator/pull/2176 is released */
16+ // blacklistModalities: ["micr"],
17+ }
18+
519export async function runValidator (
620 files ,
721 options ,
@@ -14,7 +28,7 @@ export async function runValidator(
1428 } as BIDSValidatorIssues
1529 try {
1630 const tree = await fileListToTree ( files )
17- const result = await validate ( tree , { json : true } )
31+ const result = await validate ( tree , options , config )
1832 /* eslint-disable-next-line @typescript-eslint/no-unused-vars */
1933 const issues = Array . from ( result . issues , ( [ key , value ] ) => value )
2034 output . issues . warnings = issues . filter (
You can’t perform that action at this time.
0 commit comments