-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
Missing error on parsed document for unresolved alias #497
Labels
bug
Something isn't working
Comments
stefreak
changed the title
No error on parsed document for unresolved alias
Missing error on parsed document for unresolved alias
Oct 9, 2023
That's a fair concern. A method for discovering unresolved aliases should be provided, and a parsing option to include errors for them. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When parsing a document like this:
The
errors
array on the parsed document is empty, andtoJS
will throwReferenceError: Unresolved alias
To Reproduce
Expected behaviour
I expect an error on the document after calling
yaml.parseAllDocuments
.Versions (please complete the following information):
yaml
: 2.3.2The text was updated successfully, but these errors were encountered: