Fields of generated record classes could themselves have constraints but were not annotated with @Valid, resulting in these fields not being validated. This fix ensures that all custom field types - whether inner classes, standalone classes, or self-referencing classes - are correctly annotated with @Valid. This is only applicable when generating with the useBeanValidation-option enabled.
Checklist
[x] Closes #220
[x] Documentation (README.md) has been updated
[x] Version number updated in pom.xml and licenseInfo.mustache
[x] Project has been compiled with mvn clean install
[x] Updated generated-sources-files have been committed
Checklist
README.md
) has been updatedpom.xml
andlicenseInfo.mustache
mvn clean install
generated-sources
-files have been committed