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
{{ message }}
Repository navigation
Json Patch apply method is throwing JsonPatchException even if one property name is different聽#111
First of all great library support for JSON transformation 馃槂 馃憦 Was easy and intuitive on usage of it.
One thing that I noticed is when applying patch to the actual JSON -> if some of the attributes in actual JSON is not present in the operations, we are getting JsonPatchException
ref: com.github.fge.jsonpatch.JsonPatchOperation#apply com.github.fge.jsonpatch.JsonPatch#apply
And the payload was: { "tenant_id":2637,"account_id": 1231232123423}
Since payload has unknown property (tenant_id), this was throwing JsonPatchException exception.
The ask is what if there are some properties which needs no JsonPatch and can stay as it is?
Can we have another implementation which would suppress these exceptions that could happen when there are unknown attributes present in the actual JSON?
Activity
anandhkishan commentedon Oct 22, 2021
@fge If you could confirm that this new implementation can exist, I could start working on this and contribute to this change. Thanks!