You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apply this patch to object A to get object Ap (A patched)
Actual result
Ap is different from B. See diff:
What you expect
Ap to be the same as B.
I have also used different libraries to check the step 2 (applying the patch) and that part looks OK. So the problem is somewhere in the patch generator.
This is very nasty bug because the patch is technically valid. Applying it produces object with the correct data model, but it contains wrong data.
The text was updated successfully, but these errors were encountered:
petr-ujezdsky
changed the title
Wrong JSON patch
Generator generates wrong JSON patch
Nov 1, 2023
I have found two objects
A
andB
, where generating patch to changeA -> B
and applying it back toA
creates object different toB
.Steps to reproduce
A
to get objectAp
(A patched
)Actual result
Ap
is different fromB
. See diff:What you expect
Ap
to be the same asB
.I have also used different libraries to check the step 2 (applying the patch) and that part looks OK. So the problem is somewhere in the patch generator.
This is very nasty bug because the patch is technically valid. Applying it produces object with the correct data model, but it contains wrong data.
The text was updated successfully, but these errors were encountered: