-
Notifications
You must be signed in to change notification settings - Fork 215
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
1.2.0: Get operation chokes on empty path #178
Comments
Looks like a bug to me, but FYI there is now |
Thank you for the elaborate reporting! Will get back to you ASAP. |
@shockey released 1.2.1! FYI, as @felixfbecker has said, please avoid using Thanks a lot :)) |
@alshakero thanks for the quick turnaround on this! can we get an |
@shockey done. |
@alshakero, I just pulled down 1.2.1 and I'm seeing the same issue 😕 Here's my example running against the latest version: https://runkit.com/shockey/593194bafad712001247593c |
It works for me with |
@shockey I was a little hesitant to fix an edge case for a deprecated API. But published 1.2.2 🎊 I've just noticed that your example isn't correct BTW. If you want to Here is an example of all possible ways: Please use |
@alshakero thanks for the fix! tests are looking good again in our repository. I'll open a ticket to refactor the Sorry if my example was a bit contrived - I simply observed what was going into the call that broke things and posted it as a test case. In you're interested in knowing, we construct an object for I (along with our OSS team!) appreciate you going the extra mile on this. Cheers! 🍻 |
More than welcome! Cheers! 🍻 |
Hi everyone,
I help maintain swagger-client, which depends on
fast-json-patch
1.x.x. I was opening a PR today against our repository, and started seeing CI failures even though my local was fine.I was able to isolate the issue to
fast-json-patch
. 1.1.8 is fine, but 1.2.0 breaks ten tests in our suite that usesapply
.Here's a piece of sample code that recreates the issue:
Here's the trace:
It looks like passing an empty path in the patch is the problem. It appears that
_get
is an internal-ish part of the library, so it might be our fault to be leaning on it.Let me know what y'all think - I'd be happy to make a PR if you can point me in the right direction.
The text was updated successfully, but these errors were encountered: