Skip to content

Commit

Permalink
XSLT: PATCH response 200 OK in OData V4 (#296)
Browse files Browse the repository at this point in the history
* PATCH in V4 can produce 200 Ok

* Bump version
  • Loading branch information
ralfhandl committed Apr 24, 2024
1 parent c7e87bc commit ef9e23e
Show file tree
Hide file tree
Showing 21 changed files with 1,092 additions and 312 deletions.
12 changes: 11 additions & 1 deletion tools/V4-CSDL-to-OpenAPI.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -3627,7 +3627,17 @@
</xsl:otherwise>
</xsl:choose>

<xsl:call-template name="responses" />
<xsl:choose>
<xsl:when test="$odata-version='2.0' or $odata-version='3.0'">
<xsl:call-template name="responses" />
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="responses">
<xsl:with-param name="type" select="$qualifiedType" />
<xsl:with-param name="description" select="'Updated entity'" />
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>

<xsl:text>}</xsl:text>
</xsl:if>
Expand Down
4 changes: 2 additions & 2 deletions tools/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tools/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "odata-openapi-xslt",
"version": "0.8.1",
"version": "0.9.0",
"description": "OData to OpenAPI transformer",
"homepage": "https://github.com/oasis-tcs/odata-openapi/tree/master/tools#transformjs-for-nodejs",
"bugs": "https://github.com/oasis-tcs/odata-csdl-schemas/issues",
Expand Down
Loading

0 comments on commit ef9e23e

Please sign in to comment.