From 54b17351ff0e534e12e29096c098f5406d6118d0 Mon Sep 17 00:00:00 2001 From: ramsessanchez <63934382+ramsessanchez@users.noreply.github.com> Date: Tue, 10 Jun 2025 12:14:20 -0700 Subject: [PATCH 1/4] add sxl annotation transforms for instances and exceptionOccurrences --- transforms/csdl/preprocess_csdl.xsl | 28 ++++++++++- .../csdl/preprocess_csdl_test_input.xml | 36 ++++++++++++++ .../csdl/preprocess_csdl_test_output.xml | 49 +++++++++++++++++++ 3 files changed, 112 insertions(+), 1 deletion(-) diff --git a/transforms/csdl/preprocess_csdl.xsl b/transforms/csdl/preprocess_csdl.xsl index 6c674c84d..038c7c02b 100644 --- a/transforms/csdl/preprocess_csdl.xsl +++ b/transforms/csdl/preprocess_csdl.xsl @@ -967,11 +967,37 @@ + + Navigability + Org.OData.Capabilities.V1.NavigationType/None + + + + + + + + microsoft.graph.event/exceptionOccurrences + + Org.OData.Capabilities.V1.NavigationRestrictions + + + Navigability + Org.OData.Capabilities.V1.NavigationType/None + + + + + + + + + @@ -1375,7 +1401,7 @@ - + diff --git a/transforms/csdl/preprocess_csdl_test_input.xml b/transforms/csdl/preprocess_csdl_test_input.xml index e367bc509..06f442e1b 100644 --- a/transforms/csdl/preprocess_csdl_test_input.xml +++ b/transforms/csdl/preprocess_csdl_test_input.xml @@ -19,6 +19,42 @@ + + + + + + + + + + instances + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/transforms/csdl/preprocess_csdl_test_output.xml b/transforms/csdl/preprocess_csdl_test_output.xml index fd2ae0f63..6bc5c0f44 100644 --- a/transforms/csdl/preprocess_csdl_test_output.xml +++ b/transforms/csdl/preprocess_csdl_test_output.xml @@ -54,6 +54,55 @@ + + + + + + + Org.OData.Capabilities.V1.NavigationType/None + + + + + + + + + + + + + instances + + + + + + + + + + + + + + + + + + + + + + + + Org.OData.Capabilities.V1.NavigationType/None + + + + + From cec14e7622dbd0196e043116f88ef5188e3ef5da Mon Sep 17 00:00:00 2001 From: ramsessanchez <63934382+ramsessanchez@users.noreply.github.com> Date: Thu, 12 Jun 2025 03:52:06 -0700 Subject: [PATCH 2/4] use readRestrictions and Indexable instease of navigability --- transforms/csdl/preprocess_csdl.xsl | 50 +++++++++++-------- .../csdl/preprocess_csdl_test_output.xml | 32 ++++++++---- 2 files changed, 51 insertions(+), 31 deletions(-) diff --git a/transforms/csdl/preprocess_csdl.xsl b/transforms/csdl/preprocess_csdl.xsl index 038c7c02b..045297802 100644 --- a/transforms/csdl/preprocess_csdl.xsl +++ b/transforms/csdl/preprocess_csdl.xsl @@ -967,34 +967,44 @@ - - Navigability - Org.OData.Capabilities.V1.NavigationType/None - + + true + false + + + false + + + + + + + + + true + false + + + false + - - - - microsoft.graph.event/exceptionOccurrences - - Org.OData.Capabilities.V1.NavigationRestrictions - - - Navigability - Org.OData.Capabilities.V1.NavigationType/None - - - - - - + + false + false + + + false + diff --git a/transforms/csdl/preprocess_csdl_test_output.xml b/transforms/csdl/preprocess_csdl_test_output.xml index 6bc5c0f44..ba4111b8b 100644 --- a/transforms/csdl/preprocess_csdl_test_output.xml +++ b/transforms/csdl/preprocess_csdl_test_output.xml @@ -56,15 +56,17 @@ - - - - - Org.OData.Capabilities.V1.NavigationType/None - - - - + + + + + + + + + + + @@ -96,11 +98,19 @@ - - Org.OData.Capabilities.V1.NavigationType/None + + + + + + + + + + From 9450040247ffe12fcb0177e6269273a96671db4b Mon Sep 17 00:00:00 2001 From: ramsessanchez <63934382+ramsessanchez@users.noreply.github.com> Date: Thu, 12 Jun 2025 14:28:13 -0700 Subject: [PATCH 3/4] navigability none for exceptionoccurrences --- transforms/csdl/preprocess_csdl.xsl | 12 ++++-------- transforms/csdl/preprocess_csdl_test_output.xml | 10 +++------- 2 files changed, 7 insertions(+), 15 deletions(-) diff --git a/transforms/csdl/preprocess_csdl.xsl b/transforms/csdl/preprocess_csdl.xsl index 045297802..cfea7a792 100644 --- a/transforms/csdl/preprocess_csdl.xsl +++ b/transforms/csdl/preprocess_csdl.xsl @@ -997,14 +997,10 @@ - - - false - false - - - false - + + + None + diff --git a/transforms/csdl/preprocess_csdl_test_output.xml b/transforms/csdl/preprocess_csdl_test_output.xml index ba4111b8b..6e3ff0fdd 100644 --- a/transforms/csdl/preprocess_csdl_test_output.xml +++ b/transforms/csdl/preprocess_csdl_test_output.xml @@ -56,17 +56,13 @@ - + - - - - - + + Org.OData.Capabilities.V1.NavigationType/None - From 284e58199a02b9ce30de27cfe81a1e0a131d2897 Mon Sep 17 00:00:00 2001 From: ramsessanchez <63934382+ramsessanchez@users.noreply.github.com> Date: Thu, 12 Jun 2025 15:17:13 -0700 Subject: [PATCH 4/4] add comments --- transforms/csdl/preprocess_csdl.xsl | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/transforms/csdl/preprocess_csdl.xsl b/transforms/csdl/preprocess_csdl.xsl index cfea7a792..c80c8bbae 100644 --- a/transforms/csdl/preprocess_csdl.xsl +++ b/transforms/csdl/preprocess_csdl.xsl @@ -969,16 +969,20 @@ + true false false - + + + +