Add config option to set enum case
@fabien0102 is already working on this.
Since Oct 1, 2025.
Assessment
This issue has not been assessed yet.
Description
With #282 the casing of generated Enums was changed from some broken/inconsistent state to using PascalCase as default. While the TypeScript docs also uses PascalCase in the examples, I think it would be good to have a config option, to change it.
The TypeScript generators listed on openapi-generator.tech all have an enumPropertyNaming option which allows:
camelCasePascalCasesnake_caseUPPERCASEoriginal
From my understanding this is the place where the config value should be read and matching formatter should be called:
Also the filenameCase option already have more or less the values this new config option would need:
Overall this shouldn't be a complicated but much appreciated change.
Please let me know if you need any more information on this.
- Dominant language
- TypeScript
- Stars
- 634
- Forks
- 83
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
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.
More from fabien0102/openapi-codegen
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
fabien0102/openapi-codegen#343 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
fabien0102/openapi-codegen#342 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 72/100
fabien0102/openapi-codegen#349 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
fabien0102/openapi-codegen#348 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
fabien0102/openapi-codegen#344 ·
All issues in fabien0102/openapi-codegen
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
copse-dev/agent-pane#2953 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·