Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove ContainsTarget on onenotePage navigation properties #26

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
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 @@ -119,6 +119,8 @@

<!-- Remove attribute -->
<xsl:template match="edm:Schema[@Namespace='microsoft.graph']/edm:EntityType[@Name='onenotePage']/@HasStream|
edm:Schema[@Namespace='microsoft.graph']/edm:EntityType[@Name='onenotePage']/edm:NavigationProperty[@Name='parentSection']/@ContainsTarget|
edm:Schema[@Namespace='microsoft.graph']/edm:EntityType[@Name='onenotePage']/edm:NavigationProperty[@Name='parentNotebook']/@ContainsTarget|
edm:Schema[@Namespace='microsoft.graph']/edm:EntityType[@Name='onenoteResource']/@HasStream">
<xsl:apply-templates select="@* | node()"/>
</xsl:template>
Expand Down
1 change: 1 addition & 0 deletions transforms/csdl/preprocess_csdl_test_input.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
<EntityType Name="onenotePage" BaseType="graph.onenoteEntitySchemaObjectModel" HasStream="true">
<Property Name="title" Type="Edm.String" />
<NavigationProperty Name="parentNotebook" Type="graph.notebook" ContainsTarget="true" />
<NavigationProperty Name="parentSection" Type="graph.onenoteSection" ContainsTarget="true"/>
</EntityType>
<EntityType Name="itemActivityStat" BaseType="graph.entity" OpenType="true">
<Property Name="incompleteData" Type="graph.incompleteData" />
Expand Down
3 changes: 2 additions & 1 deletion transforms/csdl/preprocess_csdl_test_output.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
</EntityType>
<EntityType Name="onenotePage" BaseType="graph.onenoteEntitySchemaObjectModel">
<Property Name="title" Type="Edm.String" />
<NavigationProperty Name="parentNotebook" Type="graph.notebook" ContainsTarget="true" />
<NavigationProperty Name="parentNotebook" Type="graph.notebook" />
<NavigationProperty Name="parentSection" Type="graph.onenoteSection" />
</EntityType>
<EntityType Name="itemActivityStat" BaseType="graph.entity" OpenType="true">
<Property Name="incompleteData" Type="graph.incompleteData" />
Expand Down