You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A string looking like a date, e.g. "2023-12-06", is encoded without surrounding quotes. This confuses other YAML parsing libraries which interprets this as a date type (e.g. in Google Cloud APIs).
To Reproduce
unmarshal and re-marshal the following: value: "2023-12-06"
The quotes will be removed.
Expected behavior
Strings looking like dates are always encoded with quotes.
Version Variables
Go version: 1.21
go-yaml's Version: [e.g. v1.11.3 ]
The text was updated successfully, but these errors were encountered:
Describe the bug
A string looking like a date, e.g. "2023-12-06", is encoded without surrounding quotes. This confuses other YAML parsing libraries which interprets this as a date type (e.g. in Google Cloud APIs).
To Reproduce
unmarshal and re-marshal the following:
value: "2023-12-06"
The quotes will be removed.
Expected behavior
Strings looking like dates are always encoded with quotes.
Version Variables
The text was updated successfully, but these errors were encountered: