python-odata
python-odata copied to clipboard
Send only dirty values for initial Entity insert
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
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.