deployment description, i.e. validation.xml<br><br><br><div class="gmail_quote">On Tue, Jun 12, 2012 at 3:38 PM, Gunnar Morling <span dir="ltr">&lt;<a href="mailto:gunnar@hibernate.org" target="_blank">gunnar@hibernate.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">2012/6/12 Albert Lee &lt;<a href="mailto:allee8285@gmail.com">allee8285@gmail.com</a>&gt;:<br>
<div class="im">&gt; I also prefer to have the version explicitly defined in the description. It<br>
&gt; is up to the implementator to interpret the value and react accordingly.<br>
<br>
</div>What exactly do you mean by &quot;description&quot;?<br>
<div class="im"><br>
&gt;<br>
&gt; One scenario (but not necessary often used) is forward &quot;compatibility&quot; where<br>
&gt; an BV 1.1 application run in an BV 1.0 implementation. With the version<br>
&gt; field in place, BV 1.0 implementor can check and handle the incompatibility<br>
&gt; easier and provided a more meaningful error message than taking an exception<br>
&gt; from the parser for any BV 1.1 syntax.<br>
<br>
</div>Hmmm, I think this would work if there was a &quot;version&quot; attribute in<br>
the BV 1.0 schema. But as there isn&#39;t, a BV 1.0 provider would stumble<br>
upon the unknown attribute when validating a 1.1 descriptor.<br>
<div class="HOEnZb"><div class="h5"><br>
&gt;<br>
&gt; Just a thought.<br>
&gt;<br>
&gt; Albert Lee.<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Jun 12, 2012 at 10:33 AM, Emmanuel Bernard &lt;<a href="mailto:emmanuel@hibernate.org">emmanuel@hibernate.org</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; My gut feeling would be to add a version number so that user identify<br>
&gt;&gt; which versant hey expect their app to be compliant with.<br>
&gt;&gt; It&#39;s always awkward later on to say that you are fine until version 1.7.<br>
&gt;&gt;<br>
&gt;&gt; But I don&#39;t have a strong opinion.<br>
&gt;&gt;<br>
&gt;&gt; On 10 juin 2012, at 18:16, Gunnar Morling wrote:<br>
&gt;&gt;<br>
&gt;&gt; &gt; Hi all,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I&#39;d be interested in your opinion on BVAL-295 [1].<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; The background is that for BV 1.1 there will be some additions to the<br>
&gt;&gt; &gt; BV XML descriptors and thus the corresponding XSD files (e.g. new<br>
&gt;&gt; &gt; element &quot;parameter-name-provider&quot; in validation.xml).<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; While implementing method validation within the RI, Hardy and I asked<br>
&gt;&gt; &gt; ourselves whether there should be an explicit version attribute in the<br>
&gt;&gt; &gt; descriptor root element (similar e.g. to JPA&#39;s persistence.xml):<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; &lt;validation-config<br>
&gt;&gt; &gt;    xmlns=&quot;<a href="http://jboss.org/xml/ns/javax/validation/configuration" target="_blank">http://jboss.org/xml/ns/javax/validation/configuration</a>&quot;<br>
&gt;&gt; &gt;    xmlns:xsi=&quot;...&quot;<br>
&gt;&gt; &gt;    xsi:schemaLocation=&quot;...&quot;<br>
&gt;&gt; &gt;    version=&quot;1.1&quot;&gt;<br>
&gt;&gt; &gt;    ...<br>
&gt;&gt; &gt; &lt;/validation-config&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; This attribute would have a fixed value defined in the schema, which<br>
&gt;&gt; &gt; would allow to unambiguously identify the BV version for which an XML<br>
&gt;&gt; &gt; descriptor was written.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; As long as all schema changes are backwards compatible (meaning any<br>
&gt;&gt; &gt; files written against the 1.0 schemas are also valid against the new<br>
&gt;&gt; &gt; schemas), there is not really the need for such a version attribute,<br>
&gt;&gt; &gt; as always the new schema files could be used for validation. Things<br>
&gt;&gt; &gt; look different, though, in case of incompatible changes. Then the<br>
&gt;&gt; &gt; schema to validate against could be determined using the version<br>
&gt;&gt; &gt; attribute.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Personally I feel we should add such an attribute once we really have<br>
&gt;&gt; &gt; an incompatible change (maybe in a future BV revision), but maybe<br>
&gt;&gt; &gt; there are other opinions?<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; --Gunnar<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; [1] <a href="https://hibernate.onjira.com/browse/BVAL-295" target="_blank">https://hibernate.onjira.com/browse/BVAL-295</a><br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; beanvalidation-dev mailing list<br>
&gt;&gt; &gt; <a href="mailto:beanvalidation-dev@lists.jboss.org">beanvalidation-dev@lists.jboss.org</a><br>
&gt;&gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/beanvalidation-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/beanvalidation-dev</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; beanvalidation-dev mailing list<br>
&gt;&gt; <a href="mailto:beanvalidation-dev@lists.jboss.org">beanvalidation-dev@lists.jboss.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/beanvalidation-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/beanvalidation-dev</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Albert Lee.<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; beanvalidation-dev mailing list<br>
&gt; <a href="mailto:beanvalidation-dev@lists.jboss.org">beanvalidation-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/beanvalidation-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/beanvalidation-dev</a><br>
&gt;<br>
<br>
_______________________________________________<br>
beanvalidation-dev mailing list<br>
<a href="mailto:beanvalidation-dev@lists.jboss.org">beanvalidation-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/beanvalidation-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/beanvalidation-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Albert Lee.<br>