-
-
Notifications
You must be signed in to change notification settings - Fork 727
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
Fix exception schema parsing if _errors array is top-level #1813
Fix exception schema parsing if _errors array is top-level #1813
Conversation
For reference, I also opened a docs PR: discord/discord-api-docs#3785 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably need to add a check for location.isEmpty()
in the SchemaError#toString
to make the output not add an empty line. Could you provide an example error log, so we can judge what it looks like?
@MinnDevelopment This is what it looks like without the
And this is what it looks like with the check in place
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me.
Pull Request Etiquette
Changes
Closes Issue: #1799
Description
This pull request fixes exception schema parsing if the
_errors
array is top-level instead of it being on a property