-
Notifications
You must be signed in to change notification settings - Fork 52
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: add better errors for missing commas in arrays and objects #5079
base: main
Are you sure you want to change the base?
fix: add better errors for missing commas in arrays and objects #5079
Conversation
QA Wolf here! As you write new code it's important that your test coverage is keeping up. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -259,6 +270,14 @@ impl<'a> winnow::stream::StreamIsPartial for TokenSlice<'a> { | |||
} | |||
} | |||
|
|||
impl<'a> winnow::stream::FindSlice<&str> for TokenSlice<'a> { |
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.
I had to implement this to use take_until
. I wasn't sure if there was a better way to check and see if there was a closing bracket or not. Using take_till
always returned Ok even if the token wasn't present
c1c5d29
to
3441557
Compare
3441557
to
79943ee
Compare
79943ee
to
9ff3bde
Compare
closes #5055
Adds better error messaging for missed commas in objects and arrays and adds the same missing closing bracket message for objects