-
-
Notifications
You must be signed in to change notification settings - Fork 149
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
(yaml) Empty string serialized without quotes if MINIMIZE_QUOTES is enabled #50
Comments
That sounds like SnakeYAML problem, since it is used for generation. |
Yes - I am using 2.8.9 but I can also reproduce the issue with 2.9.2. |
Fwtw, looks like there is one more release of https://bitbucket.org/asomov/snakeyaml/wiki/Changes which could have a relevant fix. I did not see any issue that seemed related, but I can test locally. |
…keYAML does not help with the problem
Added a failing tests, reproduces with 2.9, 3.0.0-SNAPSHOT. Newer version of |
You mention YAML 1.2 spec. SnakeYAML supports YAML 1.1 |
@asomov Ah. Good point, I added explicit mention of 1.2 in description. I wonder if forced quoting might be useful, still, even without requiring 1.2 compliancy. |
YAMLGenerator does not quote empty strings if MINIMIZE_QUOTES is enabled.
The YAML 1.2 spec says that plain (unquoted) scalars cannot be empty i.e. an empty string must always be quoted.
The text was updated successfully, but these errors were encountered: