-
Notifications
You must be signed in to change notification settings - Fork 180
[BUG] Invalid schema (bad yaml file) #2060
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It seems to have done the right thing when converted to JSON: https://bids-specification.readthedocs.io/en/latest/schema.json We don't generally expect people to parse the YAML separately. What is the context where you're hitting problems? Anyway, we can definitely accept a patch to use quotes. Would be worth adding a comment so they don't get removed in the future. |
Ah I see. I'm using the json now. Thanks! Can I ask two questions here? First question is I found that The second question is that I'm trying to implement some basic rules from schema so I don't have to maintain them manually when BIDS version changes. I noticed that in schema, there are the following "contexts": (according to https://bidsschematools.readthedocs.io/en/latest/description.html#on-reused-objects-with-different-definitions
I wonder where can I get these context string, or how are they defined? |
The difference between these is that bids-specification/src/schema/rules/files/deriv/imaging.yaml Lines 2 to 9 in 79e4ea8
There's discussion in #2052 about adding explicit selectors to file rules.
They're not defined. They're just mnemonics for giving the terms unique names, which allows them to be referenced elsewhere in the schema. |
Got it. So there are rules for which schema to be used based on context, but they are not yet stale. Thanks for answering my questions promptly, and I will watch/follow up on issue 2052 from now on. Please feel free to close this comment as all questions have been addressed. |
Describe your problem in detail.
bids-specification/src/schema/objects/enums.yaml
Line 1139 in fa2b5d8
YAML 1.1 interprets
y:...
as keytrue
instead of literaly
, hence this enum will be interpreted asDescribe what you expected.
Suggested change:
BIDS specification section
https://bids-specification.readthedocs.io/en/latest/...
The text was updated successfully, but these errors were encountered: