Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
This reverts commit 910d724.
  • Loading branch information
HeikoTheissen committed Jan 23, 2025
1 parent 910d724 commit a91a17f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tools/V4-CSDL-to-OpenAPI.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -2746,7 +2746,7 @@

<xsl:if test="@ContainsTarget='true' and $level&lt;$max-levels and
not($navigation-restrictions/edm:PropertyValue[@Property='IndexableByKey' and @Bool='false'] or
not($navigation-restrictions/edm:PropertyValue/@Property='IndexableByKey') and
not($navigation-restrictions) and
//edm:Annotation[not(@Qualifier) and @p2:Term='Org.OData.Capabilities.V1.IndexableByKey' and
$target-path=concat(@path-to-target,@target) and @Bool='false'])">
<xsl:call-template name="pathItem-single-entity">
Expand Down Expand Up @@ -4001,11 +4001,11 @@
$navigation-path=concat(../../../../../@path-to-target,../../../../../@target,' ',@p0:NavigationPropertyPath,@p1:NavigationPropertyPath)]]" />

<xsl:variable name="with-top" select="not($navigation-restrictions/edm:PropertyValue[@Property='TopSupported' and @Bool='false'] or
not($navigation-restrictions/edm:PropertyValue/@Property='TopSupported') and
not($navigation-restrictions) and
//edm:Annotation[not(@Qualifier) and @p2:Term='Org.OData.Capabilities.V1.TopSupported' and
$target-path=concat(@path-to-target,@target) and @Bool='false'])" />
<xsl:variable name="with-skip" select="not($navigation-restrictions/edm:PropertyValue[@Property='SkipSupported' and @Bool='false'] or
not($navigation-restrictions/edm:PropertyValue/@Property='SkipSupported') and
not($navigation-restrictions) and
//edm:Annotation[not(@Qualifier) and @p2:Term='Org.OData.Capabilities.V1.SkipSupported' and
$target-path=concat(@path-to-target,@target) and @Bool='false'])" />
<xsl:variable name="with-search" select="not($navigation-restrictions/edm:PropertyValue[@Property='SearchRestrictions']
Expand Down
9 changes: 8 additions & 1 deletion tools/tests/annotations.openapi3.json
Original file line number Diff line number Diff line change
Expand Up @@ -1981,7 +1981,14 @@
"ReadOnlySingleton",
"TwoReadOnlySet"
],
"parameters": [],
"parameters": [
{
"$ref": "#/components/parameters/top"
},
{
"$ref": "#/components/parameters/skip"
}
],
"responses": {
"200": {
"description": "Retrieved entities",
Expand Down

0 comments on commit a91a17f

Please sign in to comment.