spring-boot icon indicating copy to clipboard operation
spring-boot copied to clipboard

Support NestedConfigurationProperty for record types

Open acouvreur opened this issue 1 year ago • 3 comments

Add ElementType.RECORD_COMPONENT to NestedConfigurationProperty and implement isMarkedAsNested for RecordParameterPropertyDescriptor.

This will allow nested record to be properly harvested for their properties.

I've added a test case which fails to retrieve nested record groups property using the @NestedConfigurationProperty annotation.

This change adds the support for nested record to be properly extracted into groups when using @NestedConfigurationProperty.

acouvreur avatar Jun 26 '24 17:06 acouvreur

@acouvreur Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

pivotal-cla avatar Jun 26 '24 17:06 pivotal-cla

@acouvreur Thank you for signing the Contributor License Agreement!

pivotal-cla avatar Jun 26 '24 17:06 pivotal-cla

Fixed formatting

acouvreur avatar Jun 27 '24 13:06 acouvreur

Thanks. I think it's an oversight that we didn't add support for this in 3.3 when we added record metadata support.

philwebb avatar Jul 03 '24 15:07 philwebb

Thanks very much!

mhalbritter avatar Jul 04 '24 09:07 mhalbritter