Skip to content

Commit

Permalink
Fix bst call for compiling schema
Browse files Browse the repository at this point in the history
Without providing a schema path, bst defaults to another installed schema instead of my modifies one:

```
2024-11-22 15:40:41,436 [    INFO] No schema path specified, defaulting to the bundled schema, `/home/tstoeter/.local/lib/python3.11/site-packages/bidsschematools/data/schema`.
```

Making the schema path explicit fixes this.
  • Loading branch information
tstoeter authored Nov 22, 2024
1 parent 9e8da14 commit 9b19803
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ To modify the schema a clone of bids-standard/bids-specification will need to be

After changes to the schema have been made to a local copy the dereferenced single json file used by the validator will need to be built. The `bidsschematools` python package does this. It can be installed from pypi via pip or a local installation can be made. It lives in the specification repository here https://github.com/bids-standard/bids-specification/tree/master/tools/schemacode

The command to compile a dereferenced schema is `bst -v export --output src/schema.json` (this assumes you are in the root of the bids-specification repo). Once compiled it can be passed to the validator via the `-s` flag, `./bids-validator-deno -s <path to schema> <path to dataset>`
The command to compile a dereferenced schema is `bst -v export --schema src/schema --output src/schema.json` (this assumes you are in the root of the bids-specification repo). Once compiled it can be passed to the validator via the `-s` flag, `./bids-validator-deno -s <path to schema> <path to dataset>`


## Documentation

The BIDS validator documentation is available on [Read the Docs](https://bids-validator.readthedocs.io/en/latest/).
The BIDS validator documentation is available on [Read the Docs](https://bids-validator.readthedocs.io/en/latest/).

0 comments on commit 9b19803

Please sign in to comment.