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
I am intermittently getting the error message "The property 'Foo' cannot be used in the $expand query option", even though I have an [Expand("Foo")] attribute on my Dto. I think the problem occurs when multiple requests to different end points are being processed at the same time. Removing the call to Validate seems to solve the problem (and still gives me a validation error if I try to expand an invalid property), but I want be sure I'm not missing anything.
The text was updated successfully, but these errors were encountered:
I am comparing the controllers at https://github.com/OData/ODataSamples/tree/master/WebApiClassic/ODataModelReferenceSample/SampleService1/Controllers
OrdersController includes this method:
The equivalent method on ProductsController has some additional lines for validation:
What is the purpose of the additional lines?
I am intermittently getting the error message "The property 'Foo' cannot be used in the $expand query option", even though I have an [Expand("Foo")] attribute on my Dto. I think the problem occurs when multiple requests to different end points are being processed at the same time. Removing the call to Validate seems to solve the problem (and still gives me a validation error if I try to expand an invalid property), but I want be sure I'm not missing anything.
The text was updated successfully, but these errors were encountered: