Skip to content

feat(openapi): config option for simplified bound-action paths#143

Open
tim-sh wants to merge 4 commits intomainfrom
fix/boundActionsSimpleNamesOptIn
Open

feat(openapi): config option for simplified bound-action paths#143
tim-sh wants to merge 4 commits intomainfrom
fix/boundActionsSimpleNamesOptIn

Conversation

@tim-sh
Copy link
Member

@tim-sh tim-sh commented Mar 5, 2026

supersedes #142

This PR makes short bound-action paths an opt-in feature instead.
Introduces usage of cds.env to this plugin.

tim-sh added 4 commits March 3, 2026 23:06
…d action paths

- Add `shortActionPaths` option to `csdl2openapi`: when enabled, bound
  action/function paths use the simple name (e.g. `/Products/{ID}/Discount`)
  instead of the namespace-qualified name (e.g. `/Products/{ID}/TestService.Discount`)
- Apply options from `cds.env.openapi` in `package.json` as project-level
  defaults, overridable by config file, CLI flags, or programmatic options
@tim-sh tim-sh requested a review from chgeo March 5, 2026 15:54
@tim-sh tim-sh enabled auto-merge (squash) March 5, 2026 15:55
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.

1 participant