[bv-dev] Namespace for XML descriptors
Guillaume Smet
guillaume.smet at gmail.com
Fri Aug 19 10:46:59 EDT 2016
Hi,
I like the idea. Would go for bean-validation though, instead of validation.
--
Guillaume
On Fri, Aug 19, 2016 at 12:29 PM, Gunnar Morling <gunnar at hibernate.org>
wrote:
> Hi all,
>
> The XML descriptors in BV (validation.xml, constraint mapping XML files)
> use a jboss.org specific namespace as of 1.1. We should change that into
> something under jcp.org [1] which is what all other descriptors of Java
> EE techs do as of Java EE 7 (see Antonio Goncalves' blog post on this topic
> at [2]).
>
> What's rather unclear to me is why most of techs share the same namespace "
> http://xmlns.jcp.org/xml/ns/javaee", e.g. JSF, CDI and Servlet as per
> Antonio's post. I think having a specific names space for BV is more
> sensible (as done by JPA, too), not the least because BV isn't tied to EE.
>
> So I'd suggest to use
>
> * http://xmlns.jcp.org/xml/ns/validation" (for validation.xml)
> * http://xmlns.jcp.org/xml/ns/validation/mapping" (for constraint
> validation mapping files)
>
> Any thoughts?
>
> Thanks,
>
> --Gunnar
>
> [1] https://hibernate.atlassian.net/browse/BVAL-455
> [2] https://antoniogoncalves.org/2013/06/04/java-ee-7-
> deployment-descriptors/
>
>
> _______________________________________________
> beanvalidation-dev mailing list
> beanvalidation-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/beanvalidation-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/beanvalidation-dev/attachments/20160819/6ef816cc/attachment.html
More information about the beanvalidation-dev
mailing list