OData Web API Ignores Client-Added Properties

I get an error when calling "Put on my server" using WebApi Odata v4.

{
    "error": {
        "code": "",
        "message": "The request is invalid.",
        "innererror": {
            "message": "job : The property 'test' does not exist on type 'Model.Temp'. Make sure to only use property names that are defined by the type.\r\n",
            "type": "",
            "stacktrace": ""
        }
    }
}

this error occurs because the test property is not set in the Temp model. it is actually added by javascript and is used only on the client side

How to make OData just ignore properties that are not available in the model?

0
source share

Source: https://habr.com/ru/post/1626222/


All Articles