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
@Xronophobe Im not sure I understand what you mean? My use case is to have jsonpatch generate a patch that I send to a remote API in a PATCH operation. Right now Im only able to get a patch object that has replace but Id like to get the patch to have test in it as well so I can submit it first to make sure the API would be happy, then if I get a success response from my test patch I can follow up with another call that has the real patch in it with replace
The API that I'm working against also requires a test operation on the existing value before any other operation can take place. As a work-around for this, I switched around the old and new document and changed the "op" to "test" on the resulting patch document. Maybe there's a smarter way?
Given:
How can I get the patch that would have
test
instead ofreplace
?The text was updated successfully, but these errors were encountered: