You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
11.4.1.3 Handling of Properties Not Advertised in Metadata
Clients MUST be prepared to receive additional properties in an entity or complex type instance that are not advertised in metadata, even for types not marked as open. By using PATCH when updating entities, clients can ensure that such properties values are not lost if omitted from the update request.
Possible workaround was to do disable the EnableFullValidation setting but ciurrently wouldn’t enable you to add extra properties to payload during serialization.
There does not seem to be support in the ODL and WebAPI.
The text was updated successfully, but these errors were encountered:
hotchandanisagar
changed the title
Extra Properties not advertosed in Metadata if added to Payload are not serialized unless it is exposed as OpenType
Extra Properties not advertised in Metadata if added to Payload are not serialized unless it is exposed as OpenType
May 7, 2015
I think you've got the right place, looks like we can check EnableFullValidation flag and bypass such validation here. Would you please send a pull request for this?
11.4.1.3 Handling of Properties Not Advertised in Metadata
Clients MUST be prepared to receive additional properties in an entity or complex type instance that are not advertised in metadata, even for types not marked as open. By using PATCH when updating entities, clients can ensure that such properties values are not lost if omitted from the update request.
Possible workaround was to do disable the EnableFullValidation setting but ciurrently wouldn’t enable you to add extra properties to payload during serialization.
https://github.com/OData/odata.net/blob/master/src/Microsoft.OData.Core/JsonLight/ODataJsonLightPropertySerializer.cs#L190
For now, only open type would allow extra properties in serialization.
There does not seem to be support in the ODL and WebAPI.
The text was updated successfully, but these errors were encountered: