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
I'm using the library to validate if a file is correctly formatted or not. Here is the simplified code:
public static bool Validate(string filename) { try { var content = File.ReadAllText(filename); var yaml = new YamlStream(); yaml.Load(new StringReader(content)); return true; } catch(SyntaxErrorException ex) { Console.Error.WriteLine($"{filename} invalid: {ex.Start.ToString()}"); return false; } }
When I use the following content:
name: alex age: 1 #just one space to trigger error
The following is written to the console:
test.yaml invalid: Lin: 1, Col: 4, Chr: 15
I would expect Line number to be 2. Similarly column and char do not appear correct either.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm using the library to validate if a file is correctly formatted or not. Here is the simplified code:
When I use the following content:
The following is written to the console:
I would expect Line number to be 2. Similarly column and char do not appear correct either.
The text was updated successfully, but these errors were encountered: