Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to generate TS string enums #578

Merged
merged 2 commits into from
Jun 25, 2024
Merged

Add option to generate TS string enums #578

merged 2 commits into from
Jun 25, 2024

Conversation

codan84
Copy link
Contributor

@codan84 codan84 commented Feb 7, 2024

Linked issue: #200
Addressed comments/requests in: #262 (review)

Implemented as a normalizer under cli/options flag: inferStringEnumKeysFromValues

Copy link
Owner

@bcherny bcherny left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution! Would you mind adding a couple e2e tests too, so we have a record of the end to end output with this flag enabled?

@codan84
Copy link
Contributor Author

codan84 commented Mar 22, 2024

Thanks for the contribution! Would you mind adding a couple e2e tests too, so we have a record of the end to end output with this flag enabled?

Added e2e test

@codan84 codan84 requested a review from bcherny March 22, 2024 11:27
@codan84
Copy link
Contributor Author

codan84 commented May 15, 2024

@bcherny ping.
I could really do with this feature being available as we have a lot of issues with tsEnumNames when converting to OpenAPI schema.

@codan84
Copy link
Contributor Author

codan84 commented May 20, 2024

@bcherny ping 2 - all work and changes requested are completed

@codan84
Copy link
Contributor Author

codan84 commented Jun 25, 2024

How come this one is still not merged? I addressed all change requests and am updating all conflicts regularly. Can we merge this one please?

Copy link
Owner

@bcherny bcherny left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks for the contribution.

@bcherny
Copy link
Owner

bcherny commented Jun 25, 2024

Mind rebasing one last time?

@codan84
Copy link
Contributor Author

codan84 commented Jun 25, 2024

Rebased

@bcherny bcherny merged commit 3e2e1e9 into bcherny:master Jun 25, 2024
18 checks passed
@codan84 codan84 deleted the ts-enums branch June 25, 2024 13:29
@bcherny
Copy link
Owner

bcherny commented Jun 25, 2024

Published [email protected]

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.

2 participants