Add @Valid to nested properties in @ConfigurationProperties before Spring Boot 3.4
MSALSpring Boot 3.4 cascades validation into nested @ConfigurationProperties only through fields annotated with @Valid. Adds @Valid so that modules keep the validation they had before 3.4. Modules that already depend on Spring Boot 3.4 or later are left unchanged, because @Valid would enable validation they do not run today.
org. openrewrite. java. spring. boot3. AddValidToNestedConfigPropertiesBeforeBoot3_4mod run . --recipe= org. openrewrite. java. spring. boot3. AddValidToNestedConfigPropertiesBeforeBoot3_4Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.