-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
3.10.1: ConfigMapping w/ Map: does not map to any root #40727
Comments
/cc @geoand (kotlin), @radcortez (config) |
@radcortez can you have a look at this one? We probably need to fix it for 3.10.2 if it's a regression. |
I'll have a look. I am not totally convinced that it is a regression. |
Hey @bitsofinfo , I've tried to reproduce the issue, but no luck. Please check: radcortez/quarkus-config-playground@a9ed31f |
interesting, thanks for the try. I have zero clue then. Hmm, the only other difference I can think of is my application.yaml has a |
Are you able to provide the full |
here it is, the item in question is @
|
Can you also share your full mapping class? Maybe a single member doesn't cause the issue, but having all members declared is causing it. Thanks! |
The mapping class for that YAML should be the following: @ConfigMapping(prefix = "sam-tester-service", namingStrategy = ConfigMapping.NamingStrategy.VERBATIM)
public interface SamTesterService {
String appVersion();
String appEnvironment();
String appContext();
Api api();
OrdersCollector newOrdersCollector();
Senders senders();
interface Api {
Client client();
interface Client {
String subscriptionKey();
}
}
interface OrdersCollector {
Trigger trigger();
interface Trigger {
boolean enabled();
String everyExpression();
}
}
interface Senders {
Orange orange();
interface Orange {
Integer tCompanyId();
Integer zCompanyId();
Integer fanStatusCode();
}
}
} It works for me. Can you send me your version? |
Closing for the lack of feedback |
Describe the bug
Quarkus 3.10.1
application.yaml
SendersConfig.java
SenderConfig.java
Quarkus startup error:
Expected behavior
My config loads and maps to
SendersConfig
properlyActual behavior
see error above
How to Reproduce?
see above
Output of
uname -a
orver
Darwin Kernel Version 23.4.0: Wed Feb 21 21:44:54 PST 2024; root:xnu-10063.101.15~2/RELEASE_ARM64_T6031 arm64
Output of
java -version
openjdk 21.0.1 2023-10-17 LTS
Quarkus version or git rev
3.10.1
Build tool (ie. output of
mvnw --version
orgradlew --version
)------------------------------------------------------------ Gradle 8.7 ------------------------------------------------------------ Build time: 2024-03-22 15:52:46 UTC Revision: 650af14d7653aa949fce5e886e685efc9cf97c10 Kotlin: 1.9.22 Groovy: 3.0.17 Ant: Apache Ant(TM) version 1.10.13 compiled on January 4 2023 JVM: 21.0.1 (Amazon.com Inc. 21.0.1+12-LTS) OS: Mac OS X 14.4 aarch64
Additional information
n/a
The text was updated successfully, but these errors were encountered: