-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
When using @ConfigurationProperties without a prefix the first letter of the property is removed #79
Comments
Hello @katiaxyz , |
It won't work with the 0.6.1 version. Let me fix that, it should be easy. |
- Properties with groups without name is now properly rendered
…#82) - Properties with groups without name is now properly rendered
@nandorholozsnyak Thanks for the quick fix! |
Hello @Riggs333 I should have already released it, give me some time to pack the release together. |
Hello @Riggs333 Sorry for the late reply, but the fix should be available in the newly released 0.7.0 version!! |
Describe the bug
Wrong naming for the property when @ConfigurationProperties has empty prefix, i.e. empty group.
To Reproduce
Define the configuration as below:
Expected behavior
The expected behaviour is to have a property named my-property as also present in spring-configuration-metadata.json and empty group in place of "+".
Screenshots
![Screenshot 2023-07-11 at 16 59 40](https://private-user-images.githubusercontent.com/137886114/252722801-e3a6eb35-20bc-4a87-bd70-624781d31687.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ0NDA3NjcsIm5iZiI6MTcyNDQ0MDQ2NywicGF0aCI6Ii8xMzc4ODYxMTQvMjUyNzIyODAxLWUzYTZlYjM1LTIwYmMtNGE4Ny1iZDcwLTYyNDc4MWQzMTY4Ny5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODIzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyM1QxOTE0MjdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iZjNjNGJjNTNkMjAxNGNkNTc5NGIwZmNmMWMwNTM2YzM0ODUwNWVlOTQ1NjU0ODliM2EyM2MyNjU4ZDA0ZjljJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.Zn5QA0sCrhZO5li97IZuLse4T2mRelEZt-rBVr-BgBM)
Additional context
plugin configuration in pom.xml:
The text was updated successfully, but these errors were encountered: