Skip to content

Commit 070a31d

Browse files
committed
fix(cli): Allow blacklisting any modality from schema.rules.modalities
1 parent f40d4de commit 070a31d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bids-validator/src/setup/options.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type { LevelName } from '@std/log'
33
import { Command, EnumType } from '@cliffy/command'
44
import { getVersion } from '../version.ts'
55
import type { Issue, Severity } from '../types/issues.ts'
6+
import { schema } from '@bids/schema'
67

78
/**
89
* BIDS Validator config file object definition
@@ -31,7 +32,7 @@ export type ValidatorOptions = {
3132
}
3233

3334
const modalityType = new EnumType<string>(
34-
['MRI', 'PET', 'MEG', 'EEG', 'iEEG', 'Microscopy', 'NIRS', 'MRS'],
35+
Object.keys(schema.rules.modalities)
3536
)
3637

3738
/** Extendable Cliffy Command with built in BIDS validator options */

0 commit comments

Comments
 (0)