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
I understood your question as wether applied patches could be reverted.
I.e.
apply(obj,patch);// Make changesrevert(obj,patch);// Undo changes
Unfortunately the original values are lost when applying the patch and as the patch format itself is controlled by the RFC, I guess this would not be possible within the capabilities of the JSON Patch standard.
Let me know if I misunderstood the question and I'll reopen this issue.
I.e.
new_obj = apply(obj, patch)
remove(new_obj, path) // == obj
The text was updated successfully, but these errors were encountered: