We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
How to disable this behavior? 10.2.1.2. Boolean
Canonical Form Either true or false.
Either true or false.
true
false
What is a reason of such behavior? The valid YAML
bool: [true, false, on, off, yes, no]
is converted to the invalid dictionary
{'bool': [True, False, True, False, True, False]}
but expected to be converted to the dictionary
{'bool': [True, False, 'on', 'off', 'yes', 'no']}
The similar invalid behavior, the YAML
true: 1 false: 0 on: 1 off: 0 yes: 1 no: 0
results in the invalid dictionary
{True: 1, False: 0}
but expected
{True: 1, False: 0, 'on': 1, 'off': 0, 'yes': 1, 'no': 0}
The text was updated successfully, but these errors were encountered:
That's correct behavior. pyyaml implements YAML 1.1 You linked to the YAML 1.2 JSON Schema for some reason. Here's a compact doc of 1.1 and 1.2 schemas: https://perlpunk.github.io/yaml-test-schema/schemas.html
#486
Sorry, something went wrong.
yamldecode
No branches or pull requests
How to disable this behavior?
10.2.1.2. Boolean
What is a reason of such behavior? The valid YAML
is converted to the invalid dictionary
but expected to be converted to the dictionary
The similar invalid behavior, the YAML
results in the invalid dictionary
but expected
The text was updated successfully, but these errors were encountered: