Skip to content

Commit

Permalink
Support OData V2 sap:label and sap:quickinfo (#309)
Browse files Browse the repository at this point in the history
* Bump dependencies, adjust test expectations

* 0.28.0

* Update CHANGELOG.md

* bump dependencies
  • Loading branch information
ralfhandl authored Aug 6, 2024
1 parent 9ea8e2b commit 1e41aad
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 14 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 0.28.0 - 2024-08-06

### Added

- Support [SAP OData V2 annotations](https://github.com/SAP/odata-vocabularies/blob/main/docs/v2-annotations.md#element-edmproperty) `label` and `quickinfo` on properties, and `label` on entity types and parameters

## 0.27.1 - 2024-08-01

### Fixed
Expand Down
5 changes: 3 additions & 2 deletions examples/PingTest_V1.no-batch.openapi3.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"/PingTestSet('{DummyKey}')": {
"parameters": [
{
"description": "key: DummyKey",
"description": "Einstelliges Kennzeichen",
"in": "path",
"name": "DummyKey",
"required": true,
Expand Down Expand Up @@ -156,7 +156,8 @@
"properties": {
"DummyKey": {
"type": "string",
"maxLength": 1
"maxLength": 1,
"title": "Einstelliges Kennzeichen"
},
"Client": {
"type": "string",
Expand Down
5 changes: 3 additions & 2 deletions examples/PingTest_V1.openapi3.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"/PingTestSet('{DummyKey}')": {
"parameters": [
{
"description": "key: DummyKey",
"description": "Einstelliges Kennzeichen",
"in": "path",
"name": "DummyKey",
"required": true,
Expand Down Expand Up @@ -193,7 +193,8 @@
"properties": {
"DummyKey": {
"type": "string",
"maxLength": 1
"maxLength": 1,
"title": "Einstelliges Kennzeichen"
},
"Client": {
"type": "string",
Expand Down
5 changes: 3 additions & 2 deletions examples/TitleAndDescription.openapi3.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"/PingTestSet('{DummyKey}')": {
"parameters": [
{
"description": "key: DummyKey",
"description": "Einstelliges Kennzeichen",
"in": "path",
"name": "DummyKey",
"required": true,
Expand Down Expand Up @@ -193,7 +193,8 @@
"properties": {
"DummyKey": {
"type": "string",
"maxLength": 1
"maxLength": 1,
"title": "Einstelliges Kennzeichen"
},
"Client": {
"type": "string",
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "odata-openapi",
"version": "0.27.1",
"version": "0.28.0",
"description": "Convert OData CSDL XML or CSDL JSON to OpenAPI",
"homepage": "https://github.com/oasis-tcs/odata-openapi/blob/master/lib/README.md",
"bugs": "https://github.com/oasis-tcs/odata-openapi/issues",
Expand All @@ -21,7 +21,7 @@
"exports": "./lib/csdl2openapi.js",
"dependencies": {
"@discoveryjs/json-ext": "^0.6.0",
"odata-csdl": "^0.10.1"
"odata-csdl": "^0.11.1"
},
"devDependencies": {
"@apidevtools/openapi-schemas": "^2.1.0",
Expand Down

0 comments on commit 1e41aad

Please sign in to comment.