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
28 changes: 15 additions & 13 deletions transforms/csdl/preprocess_csdl.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -692,19 +692,21 @@
<xsl:with-param name="deletable">false</xsl:with-param>
</xsl:call-template>
</xsl:element>
<xsl:element name="Annotations">
<xsl:attribute name="Target">microsoft.graph.site</xsl:attribute>
<xsl:call-template name="DeleteRestrictionsTemplate">
<xsl:with-param name="deletable">false</xsl:with-param>
</xsl:call-template>
</xsl:element>
<!-- Remove insertability -->
<xsl:element name="Annotations">
<xsl:attribute name="Target">microsoft.graph.site</xsl:attribute>
<xsl:call-template name="InsertRestrictionsTemplate">
<xsl:with-param name="insertable">false</xsl:with-param>
</xsl:call-template>
</xsl:element>
<xsl:if test="$remove-capability-annotations='False'">
<xsl:element name="Annotations">
<xsl:attribute name="Target">microsoft.graph.site</xsl:attribute>
<xsl:call-template name="DeleteRestrictionsTemplate">
<xsl:with-param name="deletable">false</xsl:with-param>
</xsl:call-template>
</xsl:element>
<!-- Remove insertability -->
<xsl:element name="Annotations">
<xsl:attribute name="Target">microsoft.graph.site</xsl:attribute>
<xsl:call-template name="InsertRestrictionsTemplate">
<xsl:with-param name="insertable">false</xsl:with-param>
</xsl:call-template>
</xsl:element>
</xsl:if>
</xsl:copy>
</xsl:template>

Expand Down
16 changes: 1 addition & 15 deletions transforms/csdl/preprocess_csdl_test_output.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type='text/xsl' href='preprocess_csdl.xsl'?>
<edmx:Edmx Version="4.0" xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx">
<edmx:DataServices>
Expand Down Expand Up @@ -404,20 +404,6 @@
</Record>
</Annotation>
</Annotations>
<Annotations Target="microsoft.graph.site">
<Annotation Term="Org.OData.Capabilities.V1.DeleteRestrictions">
<Record>
<PropertyValue Property="Deletable" Bool="false" />
</Record>
</Annotation>
</Annotations>
<Annotations Target="microsoft.graph.site">
<Annotation Term="Org.OData.Capabilities.V1.InsertRestrictions">
<Record>
<PropertyValue Property="Insertable" Bool="false" />
</Record>
</Annotation>
</Annotations>
</Schema>
<Schema Namespace="microsoft.graph.callRecords" xmlns="http://docs.oasis-open.org/odata/ns/edm">
<EnumType Name="callType">
Expand Down