I have found two objects A and B, where generating patch to change A -> B and applying it back to A creates object different to B.
Steps to reproduce
- Create patch A.json -> B.json
- 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.
I have found two objects
AandB, where generating patch to changeA -> Band applying it back toAcreates object different toB.Steps to reproduce
Ato get objectAp(A patched)Actual result
Apis different fromB. See diff:What you expect
Apto 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.