Skip to content

fix: exclude autoexposed .texts entities from OpenAPI output#133

Merged
tim-sh merged 3 commits intomainfrom
fix/dotTextsAutoexposedRemove
Jan 26, 2026
Merged

fix: exclude autoexposed .texts entities from OpenAPI output#133
tim-sh merged 3 commits intomainfrom
fix/dotTextsAutoexposedRemove

Conversation

@tim-sh
Copy link
Copy Markdown
Member

@tim-sh tim-sh commented Jan 22, 2026

fixes #132

@tim-sh tim-sh requested a review from daogrady January 22, 2026 14:14
The CDS compiler transforms entity names from CSN (Books.texts) to CSDL (Books_texts), replacing dots with underscores. The original implementation checked for '.texts' suffix which never matched in CSDL.

The @cds.autoexposed annotation is correctly preserved in CSDL when odataOpenapiHints option is enabled (already done in lib/compile/index.js:36).

Also update test data to match real compiler output structure.
@tim-sh tim-sh merged commit bf9601a into main Jan 26, 2026
8 checks passed
@tim-sh tim-sh deleted the fix/dotTextsAutoexposedRemove branch January 26, 2026 17:54
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] Entity_texts being exposed for localized entities

2 participants