<div dir="ltr">
        
        
        


<p style="margin-bottom:0in"><span style="line-height:17.8px"><font face="monospace, monospace">Hi all,</font></span></p><p style="margin-bottom:0in"><span style="line-height:17.8px"><font face="monospace, monospace">It would be possible to add some built-in constraints to the V 2.0?</font></span></p><p style="margin-bottom:0in"><span style="font-family:monospace,monospace;line-height:17.8px">@NotBlank, @NotEmpty, @Length are used very often in projects, they are already present in Hibernate Validator and their implementation is well defined.</span><span style="line-height:17.8px"><font face="monospace, monospace"><br></font></span></p><p style="margin-bottom:0in"><span style="line-height:17.8px"><font face="monospace, monospace">What do you think?</font></span></p><p style="margin-bottom:0in"><span style="line-height:17.8px"><font face="monospace, monospace">Here a list of the most used constraint for GitHub&#39;s projects (the numbers change at every request but you get the idea. HV = </font></span><span style="font-family:monospace,monospace;line-height:17.8px">Hibernate Validator, BV = Bean Validation</span><span style="font-family:monospace,monospace;line-height:17.8px">):</span></p><p style="margin-bottom:0in"><font face="monospace, monospace"><span style="line-height:17.8px">189&#39;143 - BV - NotNull<br></span><span style="line-height:17.8px"> 56&#39;902 - BV - Size<br></span><span style="line-height:17.8px"> 39&#39;551 - HV - NotEmpty &lt;-<br></span></font><span style="line-height:17.8px;font-family:monospace,monospace"> 20&#39;687 - HV - NotBlank &lt;-<br></span><span style="font-family:monospace,monospace;line-height:17.8px"> 17&#39;735 - BV - Pattern<br></span><span style="font-family:monospace,monospace;line-height:17.8px"> 16&#39;763 - HV - Email<br></span><span style="font-family:monospace,monospace;line-height:17.8px"> 16&#39;033 - BV - Min<br></span><span style="font-family:monospace,monospace;line-height:17.8px"> 12&#39;769 - HV - Length &lt;-<br></span><span style="font-family:monospace,monospace;line-height:17.8px">  7&#39;806 - BV - Digits<br></span><span style="font-family:monospace,monospace;line-height:17.8px">  4&#39;982 - BV - Max<br></span><span style="font-family:monospace,monospace;line-height:17.8px">  4&#39;971 - BV - Past<br></span><span style="font-family:monospace,monospace;line-height:17.8px">  3&#39;598 - BV - DecimalMin<br></span><span style="font-family:monospace,monospace;line-height:17.8px">  2&#39;753 - BV - AssertTrue<br></span><span style="font-family:monospace,monospace;line-height:17.8px">  2&#39;379 - BV - DecimalMax<br></span><span style="font-family:monospace,monospace;line-height:17.8px">  2&#39;308 - BV - Future<br></span><span style="font-family:monospace,monospace;line-height:17.8px">  1&#39;999 - HV - Range<br></span><span style="font-family:monospace,monospace;line-height:17.8px">  1&#39;497 - HV - URL<br></span><span style="font-family:monospace,monospace;line-height:17.8px">&lt; 1&#39;000 other constraints</span></p><p style="margin-bottom:0in"><span style="line-height:17.8px"><font face="monospace, monospace">Thanks</font></span></p><p style="margin-bottom:0in"><span style="line-height:17.8px"><font face="monospace, monospace">Cheers</font></span></p><p style="margin-bottom:0in"><span style="line-height:17.8px"><font face="monospace, monospace">Marco</font></span></p></div>