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

fix: remove-enum-prefix for nested enums #903

Merged

Conversation

buzap
Copy link
Collaborator

@buzap buzap commented Aug 15, 2023

Hi,

This PR fixes issue #789 .

Previously when removing the enum value prefix, it used the tsFullName. This doesn't work for nested enums because for nested enums, tsFullName also includes the parent type name. However, the prefix we are removing only includes the enum type name (See https://buf.build/docs/lint/rules#enum_value_prefix).

@stephenh
Copy link
Owner

Awesome! Thanks!

@stephenh stephenh merged commit efdbf47 into stephenh:main Aug 15, 2023
6 checks passed
stephenh pushed a commit that referenced this pull request Aug 15, 2023
## [1.156.5](v1.156.4...v1.156.5) (2023-08-15)

### Bug Fixes

* remove-enum-prefix for nested enums ([#903](#903)) ([efdbf47](efdbf47))
@stephenh
Copy link
Owner

🎉 This PR is included in version 1.156.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants