Skip to content
Merged
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
17 changes: 13 additions & 4 deletions transforms/csdl/preprocess_csdl.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,19 @@

<!-- Changes Type attribute for properties and action/functions parameters from 'graph.Json' to 'Edm.UnTyped'-->
<xsl:template match="edm:Property[@Type='graph.Json'] | edm:Parameter[@Type='graph.Json']">
<xsl:copy>
<xsl:apply-templates select="@*"/>
<xsl:attribute name="Type">Edm.Untyped</xsl:attribute>
</xsl:copy>
<xsl:choose>
<xsl:when test="$open-api-generation='True'">
<xsl:copy>
<xsl:apply-templates select="@*"/>
<xsl:attribute name="Type">Edm.Untyped</xsl:attribute>
</xsl:copy>
</xsl:when>
<xsl:otherwise>
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:otherwise>
</xsl:choose>
</xsl:template>

<!-- Adds ContainsTarget attribute to navigation properties. These typically represent scenarios where we need to provide an improvement
Expand Down