From 6f52f6c619252ba133adad1cb46c82a52481ccfc Mon Sep 17 00:00:00 2001 From: D024504 Date: Fri, 18 Oct 2024 16:51:01 +0200 Subject: [PATCH 1/2] Translate one template --- tools/V4-CSDL-to-OpenAPI.xsl | 155 +++++++++++++++++++++++++++-------- 1 file changed, 121 insertions(+), 34 deletions(-) diff --git a/tools/V4-CSDL-to-OpenAPI.xsl b/tools/V4-CSDL-to-OpenAPI.xsl index 0c60fcf..dedf94e 100644 --- a/tools/V4-CSDL-to-OpenAPI.xsl +++ b/tools/V4-CSDL-to-OpenAPI.xsl @@ -1011,44 +1011,131 @@ - "count": - - - {"type":"string","description":"The number of entities in the collection. Available when using the [$inlinecount](https://help.sap.com/doc/5890d27be418427993fafa6722cdc03b/Cloud/en-US/OdataV2.pdf#page=67) query option."} - - - { - - "anyOf":[{"type":"number"},{ - - "type":"string" - - }] - - ,"description":"The number of entities in the collection. Available when using the [$count](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptioncount) query option."} - - - , + + + + string + The number of entities in the collection. Available when using the [$inlinecount](https://help.sap.com/doc/5890d27be418427993fafa6722cdc03b/Cloud/en-US/OdataV2.pdf#page=67) query option. + + + + + + number + string + + + + string + + + The number of entities in the collection. Available when using the [$count](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptioncount) query option. + + + - "geoPoint":{"type":"object","properties":{"type":{"type":"string","enum":["Point"],"default":"Point"},"coordinates":{"$ref":" - - geoPosition"}},"required":["type","coordinates"]}, + + object + + + string + + Point + + Point + + + + + geoPosition + + + + + type + coordinates + + - "geoPosition":{"type":"array","items":{"type":"number"},"minItems":2}, + + array + + number + + 2 + - "error":{"type":"object","required":["error"],"properties":{"error": - {"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message": - - - {"type":"string"},"target":{"type":"string"},"details": - {"type":"array","items":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"target":{"type":"string"}}}} - - - {"type":"object","required":["lang","value"],"properties":{"lang":{"type":"string"},"value":{"type":"string"}}} - - - ,"innererror":{"type":"object","description":"The structure of this object is service-specific"}}}}} + + object + + error + + + + object + + code + message + + + + string + + + + + string + + string + + + array + + object + + + code + message + + + + string + + + string + + + string + + + + + + object + + lang + value + + + + string + + + string + + + + + + + + + object + The structure of this object is service-specific" + + + From e29fa1963ed219e75831201334337bf34909c9c9 Mon Sep 17 00:00:00 2001 From: D024504 Date: Fri, 18 Oct 2024 16:59:43 +0200 Subject: [PATCH 2/2] typos --- tools/V4-CSDL-to-OpenAPI.xsl | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tools/V4-CSDL-to-OpenAPI.xsl b/tools/V4-CSDL-to-OpenAPI.xsl index dedf94e..b30fb11 100644 --- a/tools/V4-CSDL-to-OpenAPI.xsl +++ b/tools/V4-CSDL-to-OpenAPI.xsl @@ -1021,12 +1021,16 @@ - number - string + + number + + + string + - string + string The number of entities in the collection. Available when using the [$count](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptioncount) query option.