-
Notifications
You must be signed in to change notification settings - Fork 86
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
Yaml configuration not honored. #131
Comments
Hi @mike-hampton-float! Thanks for reporting it. I'll take a look. |
I have same issue. There is different behavior depending on how you run the generator.
|
hmm, it might be a bug in Quarkus, then. Thanks for sharing @vladaman. I'll take a look later this week. |
No idea, but is this reproducible using |
No, using |
It may indicate that the YAML ConfigSource is not found during |
When the implementation of Line 52 in 98f70d2
Would that be the expected behavior or a bug? |
It's a bug, imo. The yaml config source has been loaded by that time but the config instance passed to the code generator doesn't include it. |
It seems like we don't want to load config sources from the app module itself but do want to support those found in the dependencies (whether they belong to the same multi module project or not). We should be able to achieve that with classpath filtering. |
This is the idea aloubyansky/quarkus@309480d @radcortez am I missing something? |
Yes, commented on the commit :) |
Thanks guys! |
Thanks for the quick fix @aloubyansky and @radcortez. |
@hbelmiro do you have a config or a config provider impl? Unless it's the config provider, it should work. Is there a chance you could give it a try? You'd need to build the main branch of Quarkus. Let me know if you need help/instructions to do that. |
@aloubyansky I tried and it didn't work. I might have done something wrong though. The scenario is the following: Should it work? |
Yes. Do you have a reproducer ready to try? |
Do you have |
I definitely did something wrong. It's not using Quarkus 999-SNAPSHOT.
Yes. |
@aloubyansky It worked. Sorry for wasting your time. Thanks for the help :) @ricardozanini we can close this issue. |
Thanks for confirming @hbelmiro! |
My configuration is in a yaml file.
My openapi file is here crm-svc/service/src/main/openapi/sellerdeal.yaml
My application.yaml file has
Expected
The generated interfaces have the package:
Actual
The generated interfaces have the package:
The text was updated successfully, but these errors were encountered: