Open tuomur opened 7 years ago
Another solution may be adding support for "Computed" annotations for properties. The metadata may contain elements like <Annotation Term="Org.OData.Core.V1.Computed" Bool="true" />
for this purpose. On POST/PATCH these properties would be dropped from payload.
Added Computed properties in bf3351a49a65750c1beb91849be2ad961f764f51. Might need some more testing.
Sending full objects with null values sometimes causes problems when server has read-only values or values that cannot be set at initial POST. Might be better to just send dirty values. @awartani already looked at this in #9