-
Notifications
You must be signed in to change notification settings - Fork 24
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
Removes are completed sequentially, leading to unexpected results. #23
Comments
Dug into this a little more and it appears as though the issue is when an array of patches are performed for an array. Here is a failing test:
@bruth - Any hope you may fix this? |
Sorry about that, this issue completely slipped through the cracks. I sort of which GitHub would continue to bug you if a maintainer has not responded.. I will fix this. |
I don't understand the issue, patches are supposed to be applied sequentially. https://tools.ietf.org/html/rfc6902
https://tools.ietf.org/html/rfc6902#section-4.2
Result looks fine. ["apple", "orange", "pear", "lemon"]
// remove /0 =>
["orange", "pear", "lemon"]
// remove /2 =>
["orange", "pear"] and the issue you linked doesn't appear to have anything to do with your test case. |
Example:
With the following operation:
The result is:
Rather than the expected:
See here:
java-json-tools/json-patch#11 (comment)
Related thread: java-json-tools/json-patch#11
The text was updated successfully, but these errors were encountered: