-
-
Notifications
You must be signed in to change notification settings - Fork 494
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
Ignore invalid syntax #665
Comments
This YAML snippet appears to be invalid.
|
As it's no valid YAML your best bet would be to strip the offending line before parsing. |
yeah i have a dumb way to implement this, just parsing line by line and if cached the invalid line then remove it |
I've just had a look at the |
We should not be parsing invalid YAML. There would be no guarantee that anything after the invalid set of characters would be accurate. I'm going to close this issue as it is not a bug. |
Is your feature request related to a problem? Please describe.
I have a yaml file:
And apparently this line
cors: [*]
is invalid, but I don't need to use this property so I deserialized them like this:When I deleted this invalid line, everything goes right, but I can't simply delete that line for my scenario requirements.
The exception will be thrown, stacktrace:
Describe the solution you'd like
So in my expectation, it would be like:
The text was updated successfully, but these errors were encountered: