<div dir="ltr">Hey Michael,<div><br></div><div>this first version looks great so far. Thanks a lot for this.</div><div><br></div><div>Christian</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-09-23 22:08 GMT+02:00 Michael Nascimento <span dir="ltr">&lt;<a href="mailto:misterm@gmail.com" target="_blank">misterm@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi guys,<br>
<br>
I was finally able to write something before taking my flight this<br>
morning. Let me know what you think:<br>
<br>
<a href="https://github.com/sjmisterm/beanvalidation.org/blob/760cd54cb1f00bac1ae88d749d01cf80fe79f899/proposals/BVAL-496.adoc" rel="noreferrer" target="_blank">https://github.com/sjmisterm/<wbr>beanvalidation.org/blob/<wbr>760cd54cb1f00bac1ae88d749d01cf<wbr>80fe79f899/proposals/BVAL-496.<wbr>adoc</a><br>
<br>
Regards,<br>
Michael<br>
<div class="HOEnZb"><div class="h5"><br>
On Fri, Sep 23, 2016 at 4:04 AM, John Hendrikx &lt;<a href="mailto:hjohn@xs4all.nl">hjohn@xs4all.nl</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt;     &gt; Another thing: If @Future and @Past support types like LocalDate,<br>
&gt;&gt;     YearMonth and Year, should we perhaps enhance them to allow the user<br>
&gt;&gt;     to specify that the &quot;current&quot; year/month/date should also be valid?<br>
&gt;&gt;<br>
&gt;&gt;     That&#39;s a very good point, too! This one has been specifically<br>
&gt;&gt;     brought up with <a href="https://hibernate.atlassian.net/browse/BVAL-466" rel="noreferrer" target="_blank">https://hibernate.atlassian.<wbr>net/browse/BVAL-466</a><br>
&gt;&gt;     &lt;<a href="https://hibernate.atlassian.net/browse/BVAL-466" rel="noreferrer" target="_blank">https://hibernate.atlassian.<wbr>net/browse/BVAL-466</a>&gt;. It seems sensible<br>
&gt;&gt;     to add an annotation parameter for this given the support for these<br>
&gt;&gt;     non-instant types. When looking at your example, I&#39;d have a hard<br>
&gt;&gt;     time though to reason the exact semantics of inclusive(). I hope we<br>
&gt;&gt;     could find something more descriptive?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; I agree that &quot;inclusive&quot; isn&#39;t a good name. I&#39;m open for any ideas. ;-)<br>
&gt;<br>
&gt; Perhaps just provide annotations for their inverse.<br>
&gt;<br>
&gt; NotFuture/NotInFuture = past + now (past inclusive)<br>
&gt; NotPast/NotInPast = future + now (future inclusive)<br>
&gt;<br>
&gt; Or perhaps a general modifying annotation, that can be applied to<br>
&gt; everything to invert the matching logic:<br>
&gt;<br>
&gt; @Not<br>
&gt;<br>
&gt; Inverts the matching logic on this element.<br>
&gt;<br>
&gt; @Not @Past<br>
&gt; @Not @Pattern(&quot;TRUE|FALSE&quot;)  // hard to write without the @Not<br>
&gt;<br>
&gt; --John<br>
&gt; ______________________________<wbr>_________________<br>
&gt; beanvalidation-dev mailing list<br>
&gt; <a href="mailto:beanvalidation-dev@lists.jboss.org">beanvalidation-dev@lists.<wbr>jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/beanvalidation-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/<wbr>beanvalidation-dev</a><br>
______________________________<wbr>_________________<br>
beanvalidation-dev mailing list<br>
<a href="mailto:beanvalidation-dev@lists.jboss.org">beanvalidation-dev@lists.<wbr>jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/beanvalidation-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/<wbr>beanvalidation-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div>Christian Kaltepoth</div><div>Blog: <a href="http://blog.kaltepoth.de/" target="_blank">http://blog.kaltepoth.de/</a></div><div>Twitter: <a href="http://twitter.com/chkal" target="_blank">http://twitter.com/chkal</a></div><div>GitHub: <a href="https://github.com/chkal" target="_blank">https://github.com/chkal</a></div><div><br></div></div>
</div>