-
Notifications
You must be signed in to change notification settings - Fork 212
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
jsonpatch.generate modifies observed object #18
Comments
Hi Gábor, Do you have any sample code to illustrate the issue? The intended behaviour is to generate patches for changes that follows the previous call to
If this is not what you are experiencing, please let me know. |
Hi, if this is the intended behavior than no problem. I was not aware the fact that calling generate() resets the internal state. |
I believe we can make flushing optional |
That would be great! |
Fixed in 893e5f4 on |
Hi,
if I call jsonpatch.generate() the first time it generates the patches normally, but modifies the observed object, so the subsequent calls to jsonpatch.generate() don't generate any patches. Is it intentional, or is it a bug?
Regards
Gábor
The text was updated successfully, but these errors were encountered: