diff --git a/bids-validator/src/schema/context.ts b/bids-validator/src/schema/context.ts index 7d4c8dccf..dd5660934 100644 --- a/bids-validator/src/schema/context.ts +++ b/bids-validator/src/schema/context.ts @@ -107,6 +107,10 @@ export class BIDSContext implements Context { this.associations = {} as ContextAssociations } + get size(): number { + return this.file.size + } + get path(): string { return this.file.path } diff --git a/bids-validator/src/types/context.ts b/bids-validator/src/types/context.ts index 4b47ef0cf..e9c1c7843 100644 --- a/bids-validator/src/types/context.ts +++ b/bids-validator/src/types/context.ts @@ -91,6 +91,7 @@ export interface Context { dataset: ContextDataset subject: ContextSubject path: string + size: number entities: object datatype: string suffix: string