-
Notifications
You must be signed in to change notification settings - Fork 15
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
Value from Java enum are not correct #198
Comments
Same problem with quarkus.hibernate-search.elasticsearch.index-defaults.lifecycle.required-status |
After reading Quarkus documentation https://quarkus.io/guides/writing-extensions#enhanced-conversion the Quarkus Java enumeration use hyphenate converter by default:
But this behavior can be changed if you set a converter with IMHO I think we should manage the default Quarkus behavior, in other words, I think we should convert enum values with hyphenate (like we have done for property name according the @configitem value). We could do this hyphenate conversion only for Java enum which is used by Quarkus properties. @fbricon have you agree with that? After the question is what about MicroProfile properties? For the moment I have not seen use-case with MicroProfile and Java enum. @jclingan what do you think if we convert Java enum with hyphenate rule for MicroProfile properties? Perhaps you don't like this idea, so perhaps the solution is to check if the project is a Quarkus project (in this case hyphenate rule is used), otherwise if it's a just a MicroProfile project without Quarkus, there is no conversion to do for enum. |
Fixes redhat-developer#198 Signed-off-by: azerr <azerr@redhat.com>
After playing with Java enum with Quarkus and MicroProfile, here the conclusion (for default behaviour):
It means that this kebab-case must be done on MicroProfile LS side and not on JDT LS side because a given Java enumeration can be used on MicroProfile ConfigProperty and Quarkus ConfigRoot both. |
Fixes redhat-developer#198 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#198 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#198 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#198 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#198 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#198 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#198 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#198 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#198 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#198 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#198 Signed-off-by: azerr <azerr@redhat.com>
Fixes #198 Signed-off-by: azerr <azerr@redhat.com>
Today value from Java enum are used in the application.properties file
For instance we have:
quarkus.log.console.async.overflow = BLOCK
where
BLOCK
is the Java enum name.But we should have (see discussion at https://quarkusio.zulipchat.com/#narrow/stream/187030-users/topic/What.20is.20the.20case.20sensitive.20rule.20for.20value.20property.20with.20enum)
quarkus.log.console.async.overflow = block
We must study the rule of convert of Java enum value (see https://quarkus.io/guides/writing-extensions#enhanced-conversion)
It seems that
BLOCK
andblock
are correct forquarkus.log.console.async.overflow
We have the same problem with
quarkus.datasource.transaction-isolation-level
. Our allowed value are for instanceREPEATABLE_READ
although documentationSee https://quarkus.io/guides/all-config#quarkus-agroal_quarkus.datasource.transaction-isolation-level says
repeatable-read
The text was updated successfully, but these errors were encountered: