@ConfigurationProperties on a @Bean method allows to set properties based on setters, so those properties should also be included in metadata.

Fixes #34309.

It seems that not exposing setter-only properties is by design, some test actually test that; I have ~not~ adjusted them ~yet~, but intend to do that, still wanted I wanted to share my code early to get some feedback on this already, and not go to far before verifying this is actually wanted.

I started this mainly for collecting experience using this specific problem I have -- If there is already a alternative implementation in the works I have no problem stopping here. :)

I think this will expose a number of (leaf) properties that have no string representation (and thus are likely not useful for IDEs nor reports), I'll check if it is possible to exclude such properties in this scope, or if it is too big for this and needs to be done/discussed separately.

Comment From: philwebb

I'm really sorry @criztovyl, but after discussing this today on the team call we no longer feel like generating meta-data for setters alone is the right approach. See https://github.com/spring-projects/spring-boot/issues/34309#issuecomment-1470796893 for more details.

I'm sorry about the wasted effort here. I should not have marked the issue as a bug and assigned it to a milestone in the first place.

Comment From: criztovyl

No worries, I was aware this effort might not pay off :) I still learnt a thing or two, all good.