Skip to content

Add UpperCamelCase naming strategy to EnumNamingStrategies #4663

@lbenedetto

Description

@lbenedetto

Is your feature request related to a problem? Please describe.

Some APIs I deal with use UpperCamelCase naming strategy for Enums. I can provide my own custom implementation of EnumNamingStrategy, but this is annoying.

Describe the solution you'd like

It would be nice if EnumNamingStrategy provided an UpperCamelCase strategy in addition to the lowerCamelCase strategy it currently provides.

This aligns more closely with PropertyNamingStrategy, which provides many common naming strategies, including UpperCamelCase and lowerCamelCase

Usage example

@EnumNaming(EnumNamingStrategies.UpperCamelCaseStrategy.class)

Additional context

I have provided an implementation pull request here
#4660

Metadata

Metadata

Assignees

No one assigned

    Labels

    2.19Issues planned at 2.19 or laterduplicateDuplicate of an existing (usually earlier) issueenumRelated to handling of Enum values

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions