We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Given this YAML:
Version: 1.2.3
YamlDotNet parses this as a date/time, e.g. 1/2/2003 12:00:00 AM.
1/2/2003 12:00:00 AM
According to the YAML specification only bare values that use ISO8601 format should be parsed as date/times.
I would expect this to get parsed as a string, e.g. "1.2.3".
"1.2.3"
The text was updated successfully, but these errors were encountered:
This is definitely a bug. Let me see what can be done to fix it.
Sorry, something went wrong.
Without example code, I'm going with this is resolved.
using YamlDotNet.Serialization; var deserializer = new DeserializerBuilder() .Build(); var yaml = "Version: 1.2.3"; var value = deserializer.Deserialize(new StringReader(yaml)) as Dictionary<object, object>; Console.WriteLine(value["Version"].GetType());
Results in
System.String
aaubry
No branches or pull requests
Given this YAML:
YamlDotNet parses this as a date/time, e.g.
1/2/2003 12:00:00 AM
.According to the YAML specification only bare values that use ISO8601 format should be parsed as date/times.
I would expect this to get parsed as a string, e.g.
"1.2.3"
.The text was updated successfully, but these errors were encountered: