Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Apr 26, 2024
1 parent 8c8efdf commit e7c6d46
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bids-validator/src/setup/loadSchema.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Schema } from '../types/schema.ts'
import { objectPathHandler } from '../utils/objectPathHandler.ts'
import * as schemaDefault from 'https://bids-specification.readthedocs.io/en/latest/schema.json' assert { type: 'json' }
import * as schemaDefault from 'https://bids-specification--1672.org.readthedocs.build/en/1672/schema.json' assert { type: 'json' }

/**
* Load the schema from the specification
Expand All @@ -15,7 +15,8 @@ export async function loadSchema(version = 'latest'): Promise<Schema> {
if (bidsSchema !== undefined) {
schemaUrl = bidsSchema
} else if (version === 'latest' || versionRegex.test(version)) {
schemaUrl = `https://bids-specification.readthedocs.io/en/${version}/schema.json`
schemaUrl = 'https://bids-specification--1672.org.readthedocs.build/en/1672/schema.json'
// schemaUrl = `https://bids-specification.readthedocs.io/en/${version}/schema.json`
}
try {
const schemaModule = await import(/* @vite-ignore */ schemaUrl, {
Expand Down

0 comments on commit e7c6d46

Please sign in to comment.