-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a config converter for enums #2678
Comments
Hi @dmlloyd
|
I would say:
|
@dmlloyd thanks for the clarifications. So I have given this a thought and gave it a go here
|
You're right, we do need a way to opt out. Maybe
I think your approach is correct, generally speaking. |
Re:
Okay, let me prepare a commit and open a draft PR so that we can continue with the discussion there. |
Adds a default enum converter for hyphenated values to override implicit enum default converter. Fixes quarkusio#2678
Adds a default enum converter for hyphenated values to override implicit enum default converter. Fixes quarkusio#2678
Adds a default enum converter for hyphenated values to override implicit enum default converter. Fixes quarkusio#2678
Adds a default enum converter for hyphenated values to override implicit enum default converter. Fixes quarkusio#2678
Adds a default enum converter for hyphenated values to override implicit enum default converter. Fixes quarkusio#2678
Adds a default enum converter for hyphenated values to override implicit enum default converter. Fixes quarkusio#2678
Adds a default enum converter for hyphenated values to override implicit enum default converter. Fixes quarkusio#2678
Adds a default enum converter for hyphenated values to override implicit enum default converter. Fixes quarkusio#2678
Adds a default enum converter for hyphenated values to override implicit enum default converter. Fixes quarkusio#2678
Description
Add a converter for enums that would translate between the idiomatic Java enum syntax and the idiomatic skewered-lowercase syntax of configuration. For example:
DISCARD
discard
READ_UNCOMMITTED
read-uncommitted
SIGUSR1
sigusr1
TrendBreaker
trend-breaker
MAKING_LifeDifficult
making-life-difficult
YeOldeJBoss
ye-olde-jboss
Hyphens and underscores would be interchangeable on input. Values would be case-insensitive. Note the special exception
JBoss
is always treated as a whole word (seeio.quarkus.deployment.util.StringUtil
).The text was updated successfully, but these errors were encountered: