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
Microsoft.AspNet.OData.Query.Expressions.SelectExpandWrapperConverter only respects JsonPropertyAttribute
It does not respect JsonConverterAttribute and possibly DataMemberAttribute, JsonIgnore etc...
In fact, I suspect it makes more sense to unwrap the SelectExpandWrapper<TElement> iff TElement is a user defined type (rather than dynamically generated type), and write that instead.
The text was updated successfully, but these errors were encountered:
arontsang
changed the title
Expand changes the behavior of serialization
Expand causes serialization to ignore JsonConverterAttribute
Nov 29, 2022
Microsoft.AspNet.OData.Query.Expressions.SelectExpandWrapperConverter
only respectsJsonPropertyAttribute
It does not respect
JsonConverterAttribute
and possiblyDataMemberAttribute
,JsonIgnore
etc...In fact, I suspect it makes more sense to unwrap the
SelectExpandWrapper<TElement>
iffTElement
is a user defined type (rather than dynamically generated type), and write that instead.The text was updated successfully, but these errors were encountered: