|
969 | 969 | </xsl:element> |
970 | 970 | </xsl:element> |
971 | 971 | </xsl:element> |
| 972 | + <!--Add readRestcitions to Instances through annotations. Instances is readble, but not indexable or readableByKey--> |
| 973 | + <xsl:call-template name="ReadRestrictionsTemplate"> |
| 974 | + <xsl:with-param name="readable">true</xsl:with-param> |
| 975 | + <xsl:with-param name="readableByKey">false</xsl:with-param> |
| 976 | + </xsl:call-template> |
| 977 | + <xsl:call-template name="IndexableByKeyTemplate"> |
| 978 | + <xsl:with-param name="indexableByKey">false</xsl:with-param> |
| 979 | + </xsl:call-template> |
| 980 | + </xsl:copy> |
| 981 | + </xsl:template> |
| 982 | + |
| 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--> |
| 986 | + <xsl:template match="edm:Schema[@Namespace='microsoft.graph']/edm:EntityType[@Name='bookingBusiness']/edm:NavigationProperty[@Name='calendarView']| |
| 987 | + edm:Schema[@Namespace='microsoft.graph']/edm:EntityType[@Name='calendar']/edm:NavigationProperty[@Name='calendarView']| |
| 988 | + edm:Schema[@Namespace='microsoft.graph']/edm:EntityType[@Name='group']/edm:NavigationProperty[@Name='calendarView']| |
| 989 | + edm:Schema[@Namespace='microsoft.graph']/edm:EntityType[@Name='user']/edm:NavigationProperty[@Name='calendarView']"> |
| 990 | + <xsl:copy> |
| 991 | + <xsl:apply-templates select="@* | node()"/> |
| 992 | + <xsl:call-template name="ReadRestrictionsTemplate"> |
| 993 | + <xsl:with-param name="readable">true</xsl:with-param> |
| 994 | + <xsl:with-param name="readableByKey">false</xsl:with-param> |
| 995 | + </xsl:call-template> |
| 996 | + <xsl:call-template name="IndexableByKeyTemplate"> |
| 997 | + <xsl:with-param name="indexableByKey">false</xsl:with-param> |
| 998 | + </xsl:call-template> |
| 999 | + </xsl:copy> |
| 1000 | + </xsl:template> |
| 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--> |
| 1003 | + <xsl:template match="edm:Schema[@Namespace='microsoft.graph']/edm:EntityType[@Name='event']/edm:NavigationProperty[@Name='exceptionOccurrences']"> |
| 1004 | + <xsl:copy> |
| 1005 | + <xsl:copy-of select="@* | node()" /> |
| 1006 | + <xsl:call-template name="NavigationRestrictionsTemplate"> |
| 1007 | + <xsl:with-param name="navigability">None</xsl:with-param> |
| 1008 | + </xsl:call-template> |
972 | 1009 | </xsl:copy> |
973 | 1010 | </xsl:template> |
974 | 1011 |
|
|
1375 | 1412 | </xsl:template> |
1376 | 1413 |
|
1377 | 1414 | <!-- Add Navigation Restrictions Annotations --> |
1378 | | - <xsl:template match="edm:Schema[@Namespace='microsoft.graph']"> |
| 1415 | + <xsl:template match="edm:Schema[@Namespace='microsoft.graph']"> |
1379 | 1416 | <xsl:copy> |
1380 | 1417 | <xsl:apply-templates select="@* | node()"/> |
1381 | 1418 |
|
|
0 commit comments