Why we need to put `@Valid` annotation on class properties and properties of property? ``` {noformat} class Address { @Size(min=3) String country String; }
class SingUp { String email; @Size(min=8, max=40) String password;
@Valid // why do we need to put this annotation ? Address address; } ``` {noformat} Can this be added automatically? So, no need to put `@Valid` on every property that is a class or list.
Related issue https://github.com/micronaut-projects/micronaut-core/issues/1457 |
|