Skip to content

fix: Remove top-level paths for code lists - #178

Open
daogrady wants to merge 6 commits into
mainfrom
fix/auto-exposed-composition
Open

fix: Remove top-level paths for code lists#178
daogrady wants to merge 6 commits into
mainfrom
fix/auto-exposed-composition

Conversation

@daogrady

@daogrady daogrady commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Fixes #173
Specifically addresses behaviour reported in a comment, whereas the original issue was addressed in #177

Before fix:
routes for OrderItems code list exist on top level

After fix:
routes are no longer available on top level, but can be accessed via the navigation paths POST /Orders({ID})/items etc.

@daogrady daogrady changed the title Consider codelists readonly Remove top-level paths for code lists Aug 26, 2026
@daogrady daogrady changed the title Remove top-level paths for code lists fix: Remove top-level paths for code lists Aug 26, 2026
@daogrady
daogrady marked this pull request as ready for review August 26, 2026 05:46
@daogrady
daogrady requested a review from tim-sh August 26, 2026 05:46
@daogrady
daogrady enabled auto-merge (squash) August 26, 2026 05:48

@tim-sh tim-sh left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good – just to be sure, one question, plus could you double-check that top-level GET paths for value-help code lists (e.g. Currencies) still work?

Comment thread lib/compile/index.js
}
else if (!service["@protocol"]) {
protocols.push("rest"); //taking rest as default in case no relevant protocol is there
protocols.push(supportedProtocols.includes(protocol) ? protocol : "odata");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this change meant to be part of this PR?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch, no, that slipped in from another PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] auto-exposed readonly entities contain POST/PATCH/DELETE in openAPI document

2 participants