From 9b198030e24900da8cb35f19a713fab2a432fcd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torsten=20St=C3=B6ter?= Date: Fri, 22 Nov 2024 15:44:21 +0100 Subject: [PATCH] Fix bst call for compiling schema 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. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8b53ea80..11dbeb40 100644 --- a/README.md +++ b/README.md @@ -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 ` +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 ` ## Documentation -The BIDS validator documentation is available on [Read the Docs](https://bids-validator.readthedocs.io/en/latest/). \ No newline at end of file +The BIDS validator documentation is available on [Read the Docs](https://bids-validator.readthedocs.io/en/latest/).