-
Notifications
You must be signed in to change notification settings - Fork 57
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
Doesn't understand key 'on' #56
Comments
@sporksmith it's likely your echo "'on': foo" | shyaml get-value on |
@tomjn Ah, I didn't know you could quote keys. Thanks for the workaround, though I still wonder whether a conforming parser ought to be able to handle it without the quotes. |
I think it’s a part of the spec, there’s the common refrain that the
country code for Norway evaluates to false in YAML without quotes
|
Well, More on the topic: https://stackoverflow.com/questions/42283732/are-on-and-off-supposed-to-be-interpreted-as-true-or-false-in-yaml-1-2 PyYAML and libyaml are only implementing YAML spec v1.1, which specifiy that I understand the issue, and I wish to keep this open to see what are the viable option to move towards YAML 1.2, but don't expect anything in terms of date of when this will be added, unless you can provide time and code to move forward. |
Thanks for the explanation! I don't have time to dedicate to improving this, but it's good to have the workaround and understand what's going on here. |
Notably this came up while trying to parse github workflow configs.
Here's a minimal example:
And version info:
The text was updated successfully, but these errors were encountered: