When I make this POST request with an odata-version = 4.0 header or without it, the input parameter entity is correctly deserialized. However when I add the header odata-version = 4.01 the object is null. Hence I'm wondering if I'm forgetting something to make this work.
The reason I'm asking this is because in a more complex use case I have, I'm using the odata client to post a deep insert request which automatically uses odata-version = 4.01 and a syntax that omits the odata prefix.
Hi,
I have a Create endpoint to which I try to send an object, e.g. a user:
Payload:
When I make this POST request with an
odata-version = 4.0
header or without it, the input parameterentity
is correctly deserialized. However when I add the headerodata-version = 4.01
the object is null. Hence I'm wondering if I'm forgetting something to make this work.Furthermore I have:
The reason I'm asking this is because in a more complex use case I have, I'm using the odata client to post a deep insert request which automatically uses
odata-version = 4.01
and a syntax that omits the odata prefix.Assemblies affected
Target framework: net6.0 Microsoft.AspNetCore.OData 8.2.5 Microsoft.OData.Client 7.21.1