Morcatko.AspNetCore.JsonMergePatch icon indicating copy to clipboard operation
Morcatko.AspNetCore.JsonMergePatch copied to clipboard

JsonMergePatchDocument - Why "Cannot apply more than once" ?

Open aaronclawrence opened this issue 1 year ago • 1 comments

I noticed that I can only use ApplyTo once. The second time it throws NotSupportedException("Cannot apply more than once");

I can't see why that restriction is enforced. Who cares if you apply it more than once? It looks like it will work just fine...

aaronclawrence avatar Oct 08 '24 00:10 aaronclawrence

Hm, I see it removes the "add" operations, not sure why...

aaronclawrence avatar Oct 08 '24 00:10 aaronclawrence