-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
v3 marshalling of "boolean" strings breaks YAML 1.2 interoperability. #582
Comments
I'm pretty confused now, I can't recreate this in the tests. I've checked the commit I'm using, it's a6ecf24 , which is the same as the checkout I'm running the tests on. |
okay, the test I added was bad. it works if the string is "true", it doesn't work if the string is "off" |
okay, it has just occurred to me as to what is happening here. I saw a comment around the yaml spec change for these values, and you are now only handling true/false with the quote enforced marshaling. |
So, in a sort of begging/pleading sense, I would suggest that marshaling the old 1.2 "boolean" strings as quoted strings would not, strictly speaking, be a break from the spec maybe? |
Yes, you're right and the change makes sense. We should quote strings that match 1.1 booleans. |
In v2:
this prints:
in v3:
The field is a string, and should marshal, and re-unmarshal as one.
The text was updated successfully, but these errors were encountered: