-
-
Notifications
You must be signed in to change notification settings - Fork 776
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Mapping key syntax error parsed as if there is no issue #418
Comments
@puzrin - while this is not a critical issue, it does pose challenges to our users from time to time. Any idea if you'll have to look into it? We'd look into submitting a fix ourselves too, just don't want to duplicate the efforts. |
I'd prefer to wait for PR. But prior to do something, there should be clear understanding what spec says about such thing. Probably, the most easy way is to check libyaml-based parsers. |
libyaml reports:
|
@ingydotnet thanks! |
@perlpunk found this test suite case https://github.com/yaml/yaml-test-suite/blob/master/test/JY7Z.tml |
Fixed in f0f205b (currently in |
js-yaml
appears to be treating badly-formed mapping keys as if they're well-formed.This was originally raised as a Swagger-Editor issue (swagger-api/swagger-editor#1740).
Example
Expected result
An error, maybe something along the lines of
bad indentation of a mapping entry at line 4, column 24
?Actual result
The text was updated successfully, but these errors were encountered: