Skip to content
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

YAMLGenerator serializes string with special chars unquoted when using MINIMIZE_QUOTES mode #180

Closed
trohrberg opened this issue Mar 12, 2020 · 0 comments
Labels
yaml Issue related to YAML format backend
Milestone

Comments

@trohrberg
Copy link
Contributor

When using the YAMLGenerator in the MINIMIZE_QUOTES mode, the generator serializes strings in plain style, i.e. without quoting them. However, as stated in the YAML Spec such plain style strings cannot contain some special characters such as ':', ',', and others.

As with the serialization of boolean-like strings, the YAMLGenerator should be adjusted to always quote strings containing those special characters.

I will shortly try to provide a pull request to fix this issue.

trohrberg added a commit to trohrberg/jackson-dataformats-text that referenced this issue Mar 12, 2020
…al chars

When using the YAMLGenerator in the MINIMIZE_QUOTES mode, the generator serializes strings in plain style, i.e. without quoting them. However, as stated in the YAML Spec [1] such plain style strings cannot contain some special characters such as ':', ',', and others.

[1] https://yaml.org/spec/1.2/spec.html#id2788859

As with the serialization of boolean-like strings, the YAMLGenerator should be adjusted to always quote strings containing those special characters.

I will shortly try to provide a pull request to fix this issue.
trohrberg added a commit to trohrberg/jackson-dataformats-text that referenced this issue Mar 13, 2020
…al chars

When using the YAMLGenerator in the MINIMIZE_QUOTES mode, the generator serializes strings in plain style, i.e. without quoting them. However, as stated in the YAML Spec [1] such plain style strings cannot contain some special characters such as ':', ',', and others.

[1] https://yaml.org/spec/1.2/spec.html#id2788859

As with the serialization of boolean-like strings, the YAMLGenerator should be adjusted to always quote strings containing those special characters.

I will shortly try to provide a pull request to fix this issue.
@cowtowncoder cowtowncoder added 2.11 yaml Issue related to YAML format backend labels Mar 13, 2020
@cowtowncoder cowtowncoder changed the title [YAML] Generator serializes string with special chars unquoted when using MINIMIZE_QUOTES mode YAMLGenerator serializes string with special chars unquoted when using MINIMIZE_QUOTES mode Mar 16, 2020
@cowtowncoder cowtowncoder added this to the 2.11.0 milestone Mar 16, 2020
cowtowncoder added a commit that referenced this issue Mar 16, 2020
trohrberg added a commit to trohrberg/jackson-dataformats-text that referenced this issue Apr 7, 2020
…al chars

When using the YAMLGenerator in the MINIMIZE_QUOTES mode, the generator serializes strings in plain style, i.e. without quoting them. However, as stated in the YAML Spec [1] such plain style strings cannot contain some special characters such as ':', ',', and others.

[1] https://yaml.org/spec/1.2/spec.html#id2788859

As with the serialization of boolean-like strings, the YAMLGenerator should be adjusted to always quote strings containing those special characters.

I will shortly try to provide a pull request to fix this issue.
frantuma added a commit to frantuma/jackson-dataformats-text that referenced this issue Jun 3, 2020
frantuma added a commit to frantuma/jackson-dataformats-text that referenced this issue Jun 3, 2020
Undin added a commit to JetBrains/educational-plugin that referenced this issue Sep 14, 2022
Also, drop redundant explicit transitive dependencies because we don't need them anymore

Note, new version of `jackson-dataformat-yaml` library serialize `Date` objects using quotes (see FasterXML/jackson-dataformats-text#180)
Undin added a commit to JetBrains/educational-plugin that referenced this issue Sep 14, 2022
Also, drop redundant explicit transitive dependencies because we don't need them anymore

Note, new version of `jackson-dataformat-yaml` library serialize `Date` objects using quotes (see FasterXML/jackson-dataformats-text#180)
Undin added a commit to JetBrains/educational-plugin that referenced this issue Sep 27, 2022
Also, drop redundant explicit transitive dependencies because we don't need them anymore

Note, new version of `jackson-dataformat-yaml` library serialize `Date` objects using quotes (see FasterXML/jackson-dataformats-text#180)
Undin added a commit to JetBrains/educational-plugin that referenced this issue Sep 28, 2022
Also, drop redundant explicit transitive dependencies because we don't need them anymore

Note, new version of `jackson-dataformat-yaml` library serialize `Date` objects using quotes (see FasterXML/jackson-dataformats-text#180)
Undin added a commit to JetBrains/educational-plugin that referenced this issue Sep 28, 2022
Also, drop redundant explicit transitive dependencies because we don't need them anymore

Note, new version of `jackson-dataformat-yaml` library serialize `Date` objects using quotes (see FasterXML/jackson-dataformats-text#180)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
yaml Issue related to YAML format backend
Projects
None yet
Development

No branches or pull requests

2 participants