OpenAPITools / OpenAPITools/openapi-generator

[REQ] Improve protobuf generator by adding switch useSimplifiedEnumNames (eg. FOO rather than TEST_STRING_ENUM_FOO)

Open
#21,054 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement: Feature
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.