Closed luke-stead-sonocent closed 2 years ago
LGTM, also love the fix, thanks! @vishwakarma I'm wondering if this shouldn't be the default behavior (breaking change + compatibility flag to regain "wrong" behavior), WDYT?
Ping @vishwakarma ?
Thank you @luke-stead-sonocent Yes, @holograph looks good to me
Thank you both!
If you do decide you want to change the behaviour so it defaults on, I'm happy to submit a PR. Just let me know. Would it also be possible to get a new release?
Thanks again!
Sure We will do the new release by EOD tomorrow. I will update you here once the new version is released.
Hi @luke-stead-sonocent I have released the new version 0.4.12,, should be in mvn central soon
When applying a
remove
operation, the target value must exist https://datatracker.ietf.org/doc/html/rfc6902#section-4.2.This adds a compatibility flag which must be enabled to enforce this behaviour (to maintain compatibility by default with previous versions).
I've also fixed a couple of places where the
JsonPatchApplicationException
contained the wrong information.