OData / AspNetCoreOData

ASP.NET Core OData: A server library built upon ODataLib and ASP.NET Core
Other
453 stars 159 forks source link

$expand returns incomplete json if navigation property is null #219

Open ityh1 opened 3 years ago

ityh1 commented 3 years ago

We are using Odata 8.0.0-rc2 on .netcore 3.1. Our entity deployment has a navigation property audience represented as : "NavigationProperty Name="audience" Type="microsoft.wufb.deployments.deploymentAudience" ContainsTarget="true"

We are getting incomplete/incorrect json response on using $expand=audience when audience is null. image

This is similar to issue https://github.com/OData/WebApi/issues/1979 which is marked as Resolved. Could you please fix it for odata 8.0 too? Thanks

max1997dc commented 1 year ago

some news? Also with Microsoft.AspNetCore.OData" Version="8.2.1" happen the same incomplete message when a nullable navigation property is null.