I want to write a validator rule that expresses the following:
if
electrodes.tsv
exists, and it has a column “coordinate_system”, make sure that every unique value in that column exists as a top-level key in thecoordsystem.json
file
I’ve read through BIDS schema description - BIDS Schema Tools documentation and searched through the codebase for examples, but so far haven’t found any checks that make reference to values in a tabular column. Is this possible? Is there a reference (other than the schema description page linked to) for this validation syntax? Is there a way, during validation, to enter a debugger and query interactively the properties of the available objects?
NB: this relates to BEP042 and I’m totally open to the possibility that our proposed (ab)use of coordsystem.json
either may not be accepted, or if accepted, may not be possible to validate fully. I’m not interested in reviews of that design choice here; my goal is to learn more about how to write the rules/checks (even if the rule/check I end up with doesn’t end up getting utilized).