Skip to content

Commit 3db8600

Browse files
Adding odata-v4 in the allowed list of protocols supported (#61)
* Update index.js * Update CHANGELOG.md
1 parent 6b12cc3 commit 3db8600

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
66

77
## Version 1.1.2 - tbd
88

9+
### Added
10+
11+
- Now supports `odata-v4` protocol in the `@protocol` allowed values in CDS along with `odata` and `rest`.
12+
913
### Fixed
1014

1115
- Fixed the filename issue: when there is only one service in the CDL source, the OpenAPI document is now generated with the filename corresponding to the service name rather than the CDL source filename.

lib/compile/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ function _getProtocols(csdl, csn, odataVersion) {
149149
);
150150
} else if (
151151
service["@protocol"] === "rest" ||
152-
service["@protocol"] === "odata"
152+
service["@protocol"] === "odata" || service["@protocol"] === "odata-v4"
153153
) {
154154
protocols.push(service["@protocol"]);
155155
} else if (Array.isArray(service["@protocol"])) {

0 commit comments

Comments
 (0)