Open
Description
Issue by piotrpMSFT
Tuesday Jan 20, 2015 at 19:16 GMT
Originally opened as https://github.com/Microsoft/vipr-old/issues/50
OData supports properties of structrural reference types [e.g. string, Complex Types]. These reference type properties can be specified to be nullable or non-nullable. When non-nullable, the generated proxy cannot express that a user is unable to set the value to null.
When a user tries setting such a property's value to null we could throw an exception from the property Setter. It is unclear if this is necessary or beneficial since the generated proxy would not provide design-time support for preventing invalid code, and a runtime exception would be propagated from the service when a request is made.