Skip to content

Commit c267c65

Browse files
authored
Fix for odata-v4 protocol (#62)
1 parent 3db8600 commit c267c65

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
4848

4949
- OpenAPI documents can now have `externalDocs` object provided through `@OpenAPI.externalDocs` annotation in the service level of CDS.
5050
- OpenAPI documents now throws warning if `securitySchemas` are not found.
51-
- Introduced --openapi:config-file option to incorporate all the options for cds compile command in a JSON configuration file, inline options take precedence over those defined in the configuration file.
51+
- Introduced `--openapi:config-file` option to incorporate all the options for cds compile command in a JSON configuration file, inline options take precedence over those defined in the configuration file.
5252

5353
## Version 1.0.6 - 23.09.2024
5454

lib/compile/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ function _getProtocols(csdl, csn, odataVersion) {
154154
protocols.push(service["@protocol"]);
155155
} else if (Array.isArray(service["@protocol"])) {
156156
service["@protocol"].forEach((protocol) => {
157-
if (protocol === "rest" || protocol === "odata") {
157+
if (protocol === "rest" || protocol === "odata" || protocol === "odata-v4") {
158158
protocols.push(protocol);
159159
} else {
160160
console.warn(`"${protocol}" protocol is not supported`);

0 commit comments

Comments
 (0)