Latest Version: http://xmlns.jcp.org/xml/ns/validation/
| - | Introduction |
| - | XML Namespaces |
| - | Using the Bean Validation XML Schemas |
| - | Bean Validation 2.0 Schema Resources |
| - | Bean Validation 1.1 Schema Resources |
| - | Bean Validation 1.0 Schema Resources |
This page describes the XML schemas used to validate the XML descriptors of Bean Validation.
As of Bean Validation 2.0, the XML namespaces of the descriptors are:
For Bean Validation 1.x the XML namespaces are:
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.
This table contains the XML Schema components for Bean Validation 2.0.
| Date Published | File Name | Description | Specification Section | Status |
|---|---|---|---|---|
| July 31, 2017 | validation-configuration-2.0.xsd | Bean Validation configuration schema | 6.5.6 | Final Release |
| July 31, 2017 | validation-mapping-2.0.xsd | Bean Validation constraint mapping schema | 9 | Final Release |
This table contains the XML Schema components 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 |
This table contains the XML Schema components 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 |