Skip to content

Commit eb62038

Browse files
authored
Fixed operations on navigation property bug (#67)
* Fix operations on navigation property bug * Add changelog * Update version in changelog
1 parent a33a5d9 commit eb62038

File tree

6 files changed

+12874
-13591
lines changed

6 files changed

+12874
-13591
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
This project adheres to [Semantic Versioning](http://semver.org/).
55
The format is based on [Keep a Changelog](http://keepachangelog.com/).
66

7+
## Version 1.2.0 - tbd
8+
9+
- Fixed action/function invocation on navigation path to align with CAP runtime.
10+
711
## Version 1.1.2 - 27.01.2025
812

913
### Added

lib/compile/csdl2openapi.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1518,6 +1518,10 @@ see [Expand](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-prot
15181518
* @param {boolean} byKey read by key
15191519
*/
15201520
function pathItemsForBoundOperations(paths, prefix, prefixParameters, element, sourceName, byKey = false) {
1521+
//ignore operations on navigation path
1522+
if (element.$Kind === "NavigationProperty") {
1523+
return;
1524+
}
15211525
const overloads = boundOverloads[element.$Type + (!byKey && element.$Collection ? '-c' : '')] || [];
15221526
overloads.forEach(item => {
15231527
if (item.overload.$Kind == 'Action')

0 commit comments

Comments
 (0)