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
2 changes: 2 additions & 0 deletions transforms/csdl/preprocess_csdl.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,8 @@
<!-- This should be a temp fix, tracking: https://github.com/microsoft/OpenAPI.NET.OData/issues/582 -->
<xsl:template match="edm:Schema[@Namespace='microsoft.graph']/edm:Action[@Name='verify']/edm:Parameter[@Name='forceTakeover']"/>

<xsl:template match="edm:Schema[@Namespace='microsoft.graph.security']/edm:Action[@Name='estimateStatistics']/edm:Parameter[@Name='statisticsOptions']"/>

<!-- Remove action parameters -->
<!-- This should be a temp fix, tracking: https://github.com/microsoftgraph/MSGraph-SDK-Code-Generator/issues/261 -->
<!-- <xsl:template match="edm:Schema[@Namespace='microsoft.graph']/edm:Action[@Name='createUploadSession']/edm:Parameter[@Name='deferCommit']"/> -->
Expand Down
18 changes: 18 additions & 0 deletions transforms/csdl/preprocess_csdl_test_input.xml
Original file line number Diff line number Diff line change
Expand Up @@ -651,5 +651,23 @@
<Annotation Term="Org.OData.Capabilities.V1.SkipSupported" Bool="false" />
</Annotations>
</Schema>
<Schema Namespace="microsoft.graph.security" xmlns="http://docs.oasis-open.org/odata/ns/edm">
<EnumType Name="statisticsOptions" IsFlags="true">
<Member Name="includeRefiners" Value="1" />
<Member Name="includeQueryStats" Value="2" />
<Member Name="includeUnindexedStats" Value="4" />
<Member Name="advancedIndexing" Value="8" />
<Member Name="locationsWithoutHits" Value="16" />
<Member Name="unknownFutureValue" Value="32" />
</EnumType>
<EntityType Name="ediscoverySearch">
<Property Name="dummyProperty" Type="string" />
<!-- this is partial since we only need the entity type for the action-->
</EntityType>
<Action Name="estimateStatistics" IsBound="true">
<Parameter Name="bindingParameter" Type="microsoft.graph.security.ediscoverySearch" />
<Parameter Name="statisticsOptions" Type="microsoft.graph.security.statisticsOptions" />
</Action>
</Schema>
</edmx:DataServices>
</edmx:Edmx>
17 changes: 17 additions & 0 deletions transforms/csdl/preprocess_csdl_test_output.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1677,5 +1677,22 @@
</Annotation>
</Annotations>
</Schema>
<Schema Namespace="microsoft.graph.security" xmlns="http://docs.oasis-open.org/odata/ns/edm">
<EnumType Name="statisticsOptions" IsFlags="true">
<Member Name="includeRefiners" Value="1" />
<Member Name="includeQueryStats" Value="2" />
<Member Name="includeUnindexedStats" Value="4" />
<Member Name="advancedIndexing" Value="8" />
<Member Name="locationsWithoutHits" Value="16" />
<Member Name="unknownFutureValue" Value="32" />
</EnumType>
<EntityType Name="ediscoverySearch">
<Property Name="dummyProperty" Type="string" />
<!-- this is partial since we only need the entity type for the action-->
</EntityType>
<Action Name="estimateStatistics" IsBound="true">
<Parameter Name="bindingParameter" Type="microsoft.graph.security.ediscoverySearch" />
</Action>
</Schema>
</edmx:DataServices>
</edmx:Edmx>