Skip to content

Commit

Permalink
fix(cli): Allow blacklisting any modality from schema.rules.modalities
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Oct 25, 2024
1 parent 8f3519b commit a99cdc4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bids-validator/src/setup/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import type { LevelName } from '@std/log'
import { Command, EnumType } from '@cliffy/command'
import { getVersion } from '../version.ts'
import type { Issue, Severity } from '../types/issues.ts'
import { schema } from '@bids/schema'

/**
* BIDS Validator config file object definition
Expand Down Expand Up @@ -31,7 +32,7 @@ export type ValidatorOptions = {
}

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

/** Extendable Cliffy Command with built in BIDS validator options */
Expand Down

0 comments on commit a99cdc4

Please sign in to comment.