I also prefer to have the version explicitly defined in the description. It is up to the implementator to interpret the value and react accordingly.<br><br>One scenario (but not necessary often used) is forward &quot;compatibility&quot; where an BV 1.1 application run in an BV 1.0 implementation. With the version field in place, BV 1.0 implementor can check and handle the incompatibility easier and provided a more meaningful error message than taking an exception from the parser for any BV 1.1 syntax.<br>
<br>Just a thought.<br><br>Albert Lee.<br><br><div class="gmail_quote">On Tue, Jun 12, 2012 at 10:33 AM, Emmanuel Bernard <span dir="ltr">&lt;<a href="mailto:emmanuel@hibernate.org" target="_blank">emmanuel@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">My gut feeling would be to add a version number so that user identify which versant hey expect their app to be compliant with.<br>

It&#39;s always awkward later on to say that you are fine until version 1.7.<br>
<br>
But I don&#39;t have a strong opinion.<br>
<div class="HOEnZb"><div class="h5"><br>
On 10 juin 2012, at 18:16, Gunnar Morling wrote:<br>
<br>
&gt; Hi all,<br>
&gt;<br>
&gt; I&#39;d be interested in your opinion on BVAL-295 [1].<br>
&gt;<br>
&gt; The background is that for BV 1.1 there will be some additions to the<br>
&gt; BV XML descriptors and thus the corresponding XSD files (e.g. new<br>
&gt; element &quot;parameter-name-provider&quot; in validation.xml).<br>
&gt;<br>
&gt; While implementing method validation within the RI, Hardy and I asked<br>
&gt; ourselves whether there should be an explicit version attribute in the<br>
&gt; descriptor root element (similar e.g. to JPA&#39;s persistence.xml):<br>
&gt;<br>
&gt; &lt;validation-config<br>
&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;    xmlns:xsi=&quot;...&quot;<br>
&gt;    xsi:schemaLocation=&quot;...&quot;<br>
&gt;    version=&quot;1.1&quot;&gt;<br>
&gt;    ...<br>
&gt; &lt;/validation-config&gt;<br>
&gt;<br>
&gt; This attribute would have a fixed value defined in the schema, which<br>
&gt; would allow to unambiguously identify the BV version for which an XML<br>
&gt; descriptor was written.<br>
&gt;<br>
&gt; As long as all schema changes are backwards compatible (meaning any<br>
&gt; files written against the 1.0 schemas are also valid against the new<br>
&gt; schemas), there is not really the need for such a version attribute,<br>
&gt; as always the new schema files could be used for validation. Things<br>
&gt; look different, though, in case of incompatible changes. Then the<br>
&gt; schema to validate against could be determined using the version<br>
&gt; attribute.<br>
&gt;<br>
&gt; Personally I feel we should add such an attribute once we really have<br>
&gt; an incompatible change (maybe in a future BV revision), but maybe<br>
&gt; there are other opinions?<br>
&gt;<br>
&gt; --Gunnar<br>
&gt;<br>
&gt; [1] <a href="https://hibernate.onjira.com/browse/BVAL-295" target="_blank">https://hibernate.onjira.com/browse/BVAL-295</a><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>
<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>