Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions transforms/csdl/preprocess_csdl.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,8 @@
<!-- <xsl:template match="edm:Schema[@Namespace='microsoft.graph']/edm:Action[@Name='createUploadSession']/edm:Parameter[@Name='deferCommit']"/> -->
<xsl:template match="edm:Schema[@Namespace='microsoft.graph']/edm:Action[@Name='createUploadSession']/edm:Parameter[@Name='deferCommit']"/>

<!-- Replace graph.report return type with Edm.Stream return type -->
<xsl:template match="edm:Schema[@Namespace='microsoft.graph']/edm:Function[edm:ReturnType[@Type='graph.report']]/edm:ReturnType/@Type">
<!-- Replace graph.report return type with Edm.Stream return type for report functions that start with 'get' -->
<xsl:template match="edm:Schema[@Namespace='microsoft.graph']/edm:Function[starts-with(@Name, 'get')][edm:ReturnType[@Type='graph.report']]/edm:ReturnType/@Type">
<xsl:attribute name="Type">Edm.Stream</xsl:attribute>
</xsl:template>

Expand Down
4 changes: 2 additions & 2 deletions transforms/csdl/preprocess_csdl_test_output.xml
Original file line number Diff line number Diff line change
Expand Up @@ -521,11 +521,11 @@
</Function>
<Function Name="deviceConfigurationDeviceActivity" IsBound="true" IsComposable="true">
<Parameter Name="bindingParameter" Type="graph.reportRoot" />
<ReturnType Type="Edm.Stream" />
<ReturnType Type="graph.report" />
</Function>
<Function Name="deviceConfigurationUserActivity" IsBound="true" IsComposable="true">
<Parameter Name="bindingParameter" Type="graph.reportRoot" />
<ReturnType Type="Edm.Stream" />
<ReturnType Type="graph.report" />
</Function>
<Function Name="getOffice365ActivationsUserCounts" IsBound="true" IsComposable="true">
<Parameter Name="bindingParameter" Type="graph.reportRoot" />
Expand Down