Skip to content

Commit 284e581

Browse files
committed
add comments
1 parent 9450040 commit 284e581

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

transforms/csdl/preprocess_csdl.xsl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -969,16 +969,20 @@
969969
</xsl:element>
970970
</xsl:element>
971971
</xsl:element>
972+
<!--Add readRestcitions to Instances through annotations. Instances is readble, but not indexable or readableByKey-->
972973
<xsl:call-template name="ReadRestrictionsTemplate">
973974
<xsl:with-param name="readable">true</xsl:with-param>
974975
<xsl:with-param name="readableByKey">false</xsl:with-param>
975976
</xsl:call-template>
976977
<xsl:call-template name="IndexableByKeyTemplate">
977978
<xsl:with-param name="indexableByKey">false</xsl:with-param>
978-
</xsl:call-template>
979+
</xsl:call-template>
979980
</xsl:copy>
980981
</xsl:template>
981982

983+
<!--Add readRestcitions to CalendarView through annotations. CalendarView is readble, but not indexable or readableByKey-->
984+
<!--https://github.com/oasis-tcs/odata-vocabularies/blob/main/vocabularies/Org.OData.Capabilities.V1.md#ReadByKeyRestrictionsType-->
985+
<!--https://github.com/oasis-tcs/odata-vocabularies/blob/main/vocabularies/Org.OData.Capabilities.V1.md#defaultcapabilitiestype-->
982986
<xsl:template match="edm:Schema[@Namespace='microsoft.graph']/edm:EntityType[@Name='bookingBusiness']/edm:NavigationProperty[@Name='calendarView']|
983987
edm:Schema[@Namespace='microsoft.graph']/edm:EntityType[@Name='calendar']/edm:NavigationProperty[@Name='calendarView']|
984988
edm:Schema[@Namespace='microsoft.graph']/edm:EntityType[@Name='group']/edm:NavigationProperty[@Name='calendarView']|
@@ -994,7 +998,8 @@
994998
</xsl:call-template>
995999
</xsl:copy>
9961000
</xsl:template>
997-
1001+
<!--Remove exceptionOccurrences from all URI and navigation paths by adding NavigrationRestriction annotations-->
1002+
<!--https://github.com/oasis-tcs/odata-vocabularies/blob/main/vocabularies/Org.OData.Capabilities.V1.md#navigationrestrictionstype-->
9981003
<xsl:template match="edm:Schema[@Namespace='microsoft.graph']/edm:EntityType[@Name='event']/edm:NavigationProperty[@Name='exceptionOccurrences']">
9991004
<xsl:copy>
10001005
<xsl:copy-of select="@* | node()" />

0 commit comments

Comments
 (0)