'oData Patch Delta parameter doesn't list any changed fields?

I'm using Abp Boilerplate ASP.Net Core and Angular. I've implemented odata as per the odata AspNetCore Integration document and it works fine retrieving data. I'm having an issue that when using the patch method to push changes in, the delta parameter in the patch method in my controller is empty, it doesn't list any of changes passed in. The values I'm editing are doubles and the Content-Type in the request includes application/json. The attached image shows the request and changes payload.

enter image description here



Solution 1:[1]

Add a [FromBody] attribute to the Delta<> parameter.

public override Task<IActionResult> Patch([FromODataUri] int key, [FromBody] Delta<Person> entity)
{
    return base.Patch(key, entity);
}

Fixed in ABP v3.8.3 and aspnetboilerplate/sample-odata.

Solution 2:[2]

In my case problem was caused by Nswag package. I had to get rid of it completely and problem was resolved

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 aaron
Solution 2 user1892777