Skip to content

Support stripping enums prefixes#119

Merged
smnbbrv merged 1 commit intosmnbbrv:masterfrom
calcasa:enum-stripping
Nov 14, 2025
Merged

Support stripping enums prefixes#119
smnbbrv merged 1 commit intosmnbbrv:masterfrom
calcasa:enum-stripping

Conversation

@EraYaN
Copy link
Contributor

@EraYaN EraYaN commented Nov 13, 2025

This matches the behavior of say the C# generators in protoc. And given that in the newer editions they seem to be enforcing this prefixing in enums, it would be a great feature to reduce the amount of stuff you have to type when using the generated types. We have been using this on the 3.1.2 version for a couple of years now.

Fixes #112

@smnbbrv
Copy link
Owner

smnbbrv commented Nov 13, 2025

Hi @EraYaN

please check the failed pipeline. This is also a breaking change, please use proper semantic-release commit message

@EraYaN
Copy link
Contributor Author

EraYaN commented Nov 13, 2025

I think I have fixed the linter errors and I have made the behavior an option which is really the better approach anyway.

@smnbbrv smnbbrv merged commit 1d8acb9 into smnbbrv:master Nov 14, 2025
1 check passed
@smnbbrv
Copy link
Owner

smnbbrv commented Nov 14, 2025

Thanks! is released under 5.0.0

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.

Support stripping Enum prefixes

2 participants