Jakarta Bean Validation

Bean Validation XML Schemas

This page describes the XML schemas used to validate the XML descriptors of Bean Validation.

XML Namespaces

As of Bean Validation 2.0, the XML namespaces of the descriptors are:

For Bean Validation 1.x the XML namespaces are:

Using the Bean Validation XML Schemas

XML descriptors for Bean Validation 1.1 and later must specify the used schema version using the version attribute in the root element, e.g. like so:

<?xml version="1.0" encoding="UTF-8"?>
<validation-config
        xmlns="http://xmlns.jcp.org/xml/ns/validation/configuration"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/validation/configuration validation-configuration-2.0.xsd"
        version="2.0">

        [...]

</validation-config>

This allows XML descriptor processors to use the version information to choose the appropriate version of the schema document(s) to process XML descriptor instances.

Bean Validation 2.0 Schema Resources

Table 1. XML schemas for Bean Validation 2.0
Date Published File Name Description Specification Section Status

July 11 2017

validation-configuration-2.0.xsd

Bean Validation configuration schema

6.5.6

Submitted to Final Approval Ballot

July 11 2017

validation-mapping-2.0.xsd

Bean Validation constraint mapping schema

9

Submitted to Final Approval Ballot

Bean Validation 1.1 Schema Resources

Table 2. XML schemas for Bean Validation 1.1
Date Published File Name Description Specification Section Status

May 24 2013

validation-configuration-1.1.xsd

Bean Validation configuration schema

5.5.6

Final Release

May 24 2013

validation-mapping-1.1.xsd

Bean Validation constraint mapping schema

8

Final Release

Bean Validation 1.0 Schema Resources

Table 3. XML schemas for Bean Validation 1.0
Date Published File Name Description Specification Section Status

November 16 2009

validation-configuration-1.0.xsd

Bean Validation configuration schema

5.5.6

Final Release

November 16 2009

validation-mapping-1.0.xsd

Bean Validation constraint mapping schema

8

Final Release