OpenAPITools / OpenAPITools/openapi-generator
[REQ] Improve protobuf generator by adding switch useSimplifiedEnumNames (eg. FOO rather than TEST_STRING_ENUM_FOO)
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Is your feature request related to a problem? Please describe.
@wing328 we generate wire classes with our protos so we'd like the enum names to be FOO rather than TEST_STRING_ENUM_FOO
Describe the solution you'd like
I've added a switch (default old value) https://github.com/OpenAPITools/openapi-generator/pull/21052
Describe alternatives you've considered
n/a
Additional context
Any chance we could get this into the patch?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the proposed implementation in https://github.com/OpenAPITools/openapi-generator/pull/21052 and then trace the protobuf generator entry point it changes. Done means exposing a useSimplifiedEnumNames switch, preserving the existing naming by default, and producing names such as FOO when enabled.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100