|
Post by AMI_archerwen on Feb 16, 2023 5:06:50 GMT
About the spec mentioned "The service shall ignore OData annotations in the request body, such as the resource identifier, type, and ETag properties".  But for example, we assume that "Sessions" property is "ReadOnly". And if we PATCH SessionService with below request. { "Description": "test", "Id": "test", "Name": "test", "Sessions": { "@odata.id": "test" }, "Status": { "Health": "test", "State": "test" } } Shall we also ignore? or Do we need to shows the PropertyNotWritable message for "Sessions" property?
|
|
|
Post by jautor on Feb 16, 2023 6:25:29 GMT
Do we need to shows the PropertyNotWritable message for "Sessions" property? Yes, as that is a read-only property, the `PropertyNotWritable` message is the appropriate response. Note that the first exception in that clause of the specification calls out "writeable reference properties", which always contain an `@odata.id` annotation (which is obviously not ignored as that is the actual reference). Jeff
|
|