-
Controller:
``` c#
[HttpPatch]
public IActionResult Patch(JsonPatchDocument patch)
{
patch.ApplyTo(contact, ModelState);
if (!ModelState.IsValid)
…
-
Here's the exception:
Marvin.JsonPatch.Exceptions.JsonPatchException was unhandled by user code
HResult=-2146233088
Message=Patch failed: property at location path: /IAmProperty does not exist
…
-
When attempting to patch `People` in the object below our patching mechanism throws.
``` C#
public class Users
{
public IList People { get; } = new List();
}
```
Note this happens for any type o…
-
-
=> split from #13 - by @sergkr
Here's another (potential) consideration: error handling. Error handling probably deserves its own separate issue, as there are a lot of considerations there, but since…
-
Hello,
I'm a user of Marvin.JsonPatch, and recently I got a problem.
When I try to apply a value to a path like this, "\ArrayProp\0\SubArray\0", the value will be applied to "\ArrayProp\0"…
-
According to the [spec](http://tools.ietf.org/html/rfc6902), JSON patch documents should really be using media type `application/json-patch+json`, instead of `application/json`. Just peeking at how th…