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
The following code for writing an OData payload executes okay but produces an invalid output - the value for the Amount primitive property is a nested Customer resource/object:
Even worse, the library allows you to write the primitive property both with a primitive value as well as a nested resource resulting into a duplicate property, i.e., if you include the Amount property in the Properties collection as follows,
The library should validate the property assigned to the Name property of an ODataNestedResourceInfo is either a complex or complex collection or navigation property.
Actual result
The library does not validate the property assigned to the Name property of an ODataNestedResourceInfo is either a complex or complex collection or navigation property.
Additional detail
Here's the definition of the InMemoryMessage type:
ODL library allows you to write a nested resource as the value for a primitive property
Assemblies affected
Reproduce steps
Consider the following data models, where
Customer
is a navigation property:The following code for writing an OData payload executes okay but produces an invalid output - the value for the
Amount
primitive property is a nestedCustomer
resource/object:Even worse, the library allows you to write the primitive property both with a primitive value as well as a nested resource resulting into a duplicate property, i.e., if you include the
Amount
property in theProperties
collection as follows,Below is how the output payload will look like:
Expected result
The library should validate the property assigned to the
Name
property of anODataNestedResourceInfo
is either a complex or complex collection or navigation property.Actual result
The library does not validate the property assigned to the
Name
property of anODataNestedResourceInfo
is either a complex or complex collection or navigation property.Additional detail
Here's the definition of the
InMemoryMessage
type:The text was updated successfully, but these errors were encountered: