Skip to content

Jakarta Validation 3.1 validation XSDs enforce 3.0 as a version #262

@marko-bekhta

Description

@marko-bekhta

XSDs currently contain

<xs:attribute name="version" type="config:versionType" fixed="3.0" use="required"/>

which results in files like:

<validation-config
        xmlns="https://jakarta.ee/xml/ns/validation/configuration"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="https://jakarta.ee/xml/ns/validation/configuration
		https://jakarta.ee/xml/ns/validation/validation-configuration-3.1.xsd"
        version="3.1">

...
</validation-config>

failing the validation with:

Value '3.1' of attribute 'version' of element 'validation-config' is not valid with respect to the corresponding attribute use. Attribute 'version' has a fixed value of '3.0'.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions