Skip to content

Specification Coverage

What the Jakarta Validation 3.1 specification requires, chapter by chapter, and where this library stands. The library is not a certified implementation and does not run the TCK; this page is the honest substitute. The migration guide says what each difference means for a project coming from Hibernate Validator.

Chapter Status Deviations
3. Constraint definition in place A missing or mistyped message, groups or payload attribute raises IllegalArgumentException, not ConstraintDefinitionException; attribute names starting with valid, the presence rules for validationAppliesTo, an @OverridesAttribute naming a constraint that is not composing, and more than one cross-parameter validator per constraint are not checked.
4. Value extractor definition in place @ExtractedValue(type) on a type argument is ignored instead of rejected; no JavaFX extractors.
5. Constraint declaration and validation in place Cycle detection is per validation call, not per navigation path (as Hibernate Validator); parameter names are also recovered from bytecode (a superset); a constraint on a field declared Object or Number is accepted and an unsupported runtime type is skipped; a class @GroupSequence may not list another sequence or a duplicate (stricter); return-value @Valid twice along a hierarchy is accepted; methods are compared by erased signature, so generic overrides escape the hierarchy checks; a @ConvertGroup re-declared in a subtype is not rejected.
6. Validation APIs in place Only dotted names in a message are looked up as bundle keys; the one-argument interpolate uses the locale captured at build time; validateValue does not consult the TraversableResolver; getConstraintDescriptor() and getMessageTemplate() are null on @Validate and @Expr violations; addMapping throws and XML is never read; with another provider on the classpath the default provider is classpath order; a ValidatorFactory stays usable after close().
7. Constraint metadata in place A constraint on a container’s unwrapped value sits on the container element descriptor, not the property; getContainerClass() is the declared raw type; ConstraintFinder.unorderedAndMatchingGroups does not honour a class’s redefined Default; executables carrying only @Validate or @Expr are invisible; getConstraintValidatorClasses() lists validatedBy only.
8. Built-in constraints in place @Min, @Max, @DecimalMin and @DecimalMax also accept double, float and CharSequence (as Hibernate Validator); NaN passes the numeric constraints; -0.0 counts as negative; @Pattern uses Hibernate’s message wording (must match "{regexp}").
9. XML configuration excluded META-INF/validation.xml and constraint mapping files are never read.
10. Exception model in place Declaration problems raise the specification’s exceptions through named subclasses; every failure inside validation reaches the caller as a ValidationException; validateIn, inside a rulii context, keeps rulii’s UnrulyException.
11. Integration partly Records and the Jakarta Persistence traversable resolver are in; @ValidateOnExecution and interception, CDI, JSF and JAX-RS integration are left to frameworks and containers.

So that nothing here is mistaken for a gap, these are additions: @Validate and @Bind, @Expr and @ExprDefaults, severities through payload markers, validateIn, per-class and per-executable rule flows, registry listing with descriptions, categories and tags, the library’s own constraints, and the Hibernate message key fallback.

Found something not listed here? Open an issue on GitHub with the bean and the expected violations.