From 9a0de02f5c320579e456bb3467a47e252994bc54 Mon Sep 17 00:00:00 2001
From: Irvine Sunday <40403681+irvinesunday@users.noreply.github.com>
Date: Fri, 5 May 2023 18:13:27 +0300
Subject: [PATCH] Removes containment for `accessPackageCatalog/accessPackages`
nav. prop. (#341)
* Remove containment of accessPackages
* Add tests
* Comment update
---
transforms/csdl/preprocess_csdl.xsl | 5 +++--
transforms/csdl/preprocess_csdl_test_input.xml | 3 +++
transforms/csdl/preprocess_csdl_test_output.xml | 3 +++
3 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/transforms/csdl/preprocess_csdl.xsl b/transforms/csdl/preprocess_csdl.xsl
index 6611e6de4..93d16f307 100644
--- a/transforms/csdl/preprocess_csdl.xsl
+++ b/transforms/csdl/preprocess_csdl.xsl
@@ -379,9 +379,10 @@
-
+
+ edm:Schema[@Namespace='microsoft.graph']/edm:EntityType[@Name='group']/edm:NavigationProperty[@Name='rejectedSenders']/@ContainsTarget|
+ edm:Schema[@Namespace='microsoft.graph']/edm:EntityType[@Name='accessPackageCatalog']/edm:NavigationProperty[@Name='accessPackages']/@ContainsTarget">
diff --git a/transforms/csdl/preprocess_csdl_test_input.xml b/transforms/csdl/preprocess_csdl_test_input.xml
index 077c5bfa3..06e469d81 100644
--- a/transforms/csdl/preprocess_csdl_test_input.xml
+++ b/transforms/csdl/preprocess_csdl_test_input.xml
@@ -70,6 +70,9 @@
+
+
+
diff --git a/transforms/csdl/preprocess_csdl_test_output.xml b/transforms/csdl/preprocess_csdl_test_output.xml
index ac663202c..148f4c309 100644
--- a/transforms/csdl/preprocess_csdl_test_output.xml
+++ b/transforms/csdl/preprocess_csdl_test_output.xml
@@ -262,6 +262,9 @@
+
+
+