Skip to content

Conversation

@koralkulacoglu
Copy link
Contributor

Ticket: DX-1373

Previously, all JSDoc comments on enum values were automatically converted to x-enumDescriptions in the OpenAPI spec, causing internal developer comments to be exposed as public API documentation.

This change modifies the keyof function to only generate x-enumDescriptions when enum values have explicit @description tags, giving developers control over what becomes public documentation.

More context can be found on this Slack thread.

@koralkulacoglu koralkulacoglu requested a review from a team as a code owner November 24, 2025 21:18
@koralkulacoglu
Copy link
Contributor Author

Not sure why the Nix Flake Check is failing. I can run npx prettier --write . but it modifies files I didn't touch in this PR.

@koralkulacoglu koralkulacoglu force-pushed the DX-1373-add-a-tag-for-enumDescriptions branch from db69853 to b7531fe Compare November 24, 2025 21:34
Copy link
Contributor

@starfy84 starfy84 left a comment

Choose a reason for hiding this comment

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

LGTM. @koralkulacoglu can you also make a PR in dev-portal to bump the version of openapi-generator?

@koralkulacoglu koralkulacoglu merged commit b2a6925 into master Nov 24, 2025
5 of 6 checks passed
@koralkulacoglu koralkulacoglu deleted the DX-1373-add-a-tag-for-enumDescriptions branch November 24, 2025 21:40
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.

3 participants