Open jazzmanro opened 8 months ago
That's by design. With explicit expansion only the literal types will expand by default.
If you're interested consider the approach we use for including literal types and include a PR for the non-navigation/simple members.
Starting from the samples in this repo, let's make
OpsTenant.BuildingIds
aList<int>
and add a mapping:Source/destination types
Mapping configuration
Version: 4.0.1
Expected behavior
BuildingIds
should be populated when calling:http://localhost:16324/opstenant
Actual behavior
BuildingIds
is not populated by default unless I explicitly $select it:http://localhost:16324/opstenant?$select=Identity,Name,CreatedDate,BuildingIds
I think this is an issue as it is not consistent with the other members behavior.
BuildingIds
is a simple member with a custom mapping, it is neither a navigation nor complex property, $expand won't work. To be forced to $select in order to access the data is not intuitive and also not practical as it requires to explicitly $select all other properties in order to get the default structure.