Apply the patch on the current object and create a patch between the old and the new version to see if the patch has made any difference.
An example for this is when the original object holds a reference to a field that doesn't exist either in current neither in the modified version. Based on the comparison between original and modified a deletion will be generated, which is not what we want, since it will have no effect on current.
The same is already done for structured objects, but it was missing for unstructured.
What's in this PR?
Apply the patch on the current object and create a patch between the old and the new version to see if the patch has made any difference.
An example for this is when the
original
object holds a reference to a field that doesn't exist either incurrent
neither in themodified
version. Based on the comparison betweenoriginal
andmodified
a deletion will be generated, which is not what we want, since it will have no effect on current.The same is already done for structured objects, but it was missing for unstructured.