Repository navigation
Replaces graph.report return type with Edm.Stream return type for matching Functions - #213
Conversation
|
(thanks for tackling this one) |
| <Parameter Name="incompatibleAccessPackageId" Type="Edm.String" Unicode="false" /> | ||
| <ReturnType Type="Collection(graph.accessPackageAssignment)" /> | ||
| </Function> | ||
| <Function Name="deviceConfigurationDeviceActivity" IsBound="true" IsComposable="true"> |
There was a problem hiding this comment.
Out of curiosity, can a function that returns an OData primitive (stream in this case) be composable? In my head a primitive can't have any paths expanded from it.
This would help me figure out the right way to fix the upcoming generation tomorrow as this change breaks the expectation at the link below which tries to cast the return type to a complex object.
cc Vincent Biret (@baywet) Darrel (@darrelmiller) Irvine Sunday (@irvinesunday)
There was a problem hiding this comment.
Expansion and composition are semantically different. The former requires a complex/entity type with complex properties, the latter just another function that targets the type.
There's no reason semantically speaking why I couldn't have a "countbytes" function that binds to EDM stream. In practice I don't think I've seen bindings to primitive types however.
Fixes #140
graph.reportreturn type withEdm.Streamreturn type for functions with a return type ofgraph.report.