-
Notifications
You must be signed in to change notification settings - Fork 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
Plain scalars with colons inside flow mappings & sequences are valid YAML #295
Comments
rogpeppe
added a commit
to rogpeppe-contrib/yaml
that referenced
this issue
Jan 5, 2018
We copy the same fix from the original libyaml code. Fixes issue go-yaml#295.
rogpeppe
added a commit
to rogpeppe-contrib/yaml
that referenced
this issue
Jan 5, 2018
We copy the same fix from the original libyaml code. Fixes issue go-yaml#295.
Fixed in devel branch by PR #305 |
I see no tests added for the failing corner cases:
|
djgilcrease
pushed a commit
to djgilcrease/yaml
that referenced
this issue
Mar 14, 2018
We copy the same fix from the original libyaml code. Fixes issue go-yaml#295.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Scalars with colons, such as URLs, when they are inside flow mappings, e.g.
and sequences, e.g.
make
go-yaml
choke withfound unexpected ':'
.The specs however explicitly allow it:
On a related note,
libyaml
(the reference parser for YAML in C) had a similar issue but it seems to have been addressed and about to be released.The text was updated successfully, but these errors were encountered: