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

Bug: YAML parser includes Tags as part of the parsed value #9040

Closed
pwolanin opened this issue Sep 15, 2013 · 2 comments
Closed

Bug: YAML parser includes Tags as part of the parsed value #9040

pwolanin opened this issue Sep 15, 2013 · 2 comments
Labels

Comments

@pwolanin
Copy link

http://www.yaml.org/spec/1.2/spec.html#id2802346

The "Failsafe schema" says:

"The failsafe schema is guaranteed to work with any YAML document. It is therefore the recommended schema for generic YAML tools. "

10.1.2. Tag Resolution

All nodes with the “!” non-specific tag are resolved, by the standard convention, to “tag:yaml.org,2002:seq”, “tag:yaml.org,2002:map”, or “tag:yaml.org,2002:str”, according to their kind.

So, it would seem the parser should at a minimum handle tags in this failsafe way. As best I can tell that would essentially mean stripping them out.

At the moment, if you put even the YAML !!str tag at the beginning of a string it's included in the value, which is certainly not in any conformity to the spec.

@cordoval
Copy link
Contributor

cordoval commented Dec 7, 2013

to keep in mind #8562 (comment)

@fabpot
Copy link
Member

fabpot commented Oct 5, 2015

Not supported by our parser and it will probably never be supported.

@fabpot fabpot closed this as completed Oct 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants