We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Following the work on #15081 class constraint are not called but contraint on properties does.
Given
@ConfigMapping(prefix = "foo") @CustomFalse public interface TestConfig { }
@Target({ TYPE, ANNOTATION_TYPE }) @Retention(RUNTIME) @Constraint(validatedBy = { CustomFalseValidator.class }) @Documented public @interface CustomFalse { String message() default "nothing you can do"; Class<?>[] groups() default { }; Class<? extends Payload>[] payload() default { }; }
public class CustomFalseValidator implements ConstraintValidator<CustomFalse , TestConfig> { @Override public boolean isValid(TestConfigconfig, ConstraintValidatorContext context) { return false; } }
Validation should failed.
Validation pass
No response
uname -a
ver
java -version
2.6.2
mvnw --version
gradlew --version
The text was updated successfully, but these errors were encountered:
/cc @gsmet, @yrodiere
Sorry, something went wrong.
Is this still an issue with Quarkus 2.9.0.Final?
2.9.0.Final
radcortez
Successfully merging a pull request may close this issue.
Describe the bug
Following the work on #15081 class constraint are not called but contraint on properties does.
Expected behavior
Given
Validation should failed.
Actual behavior
Validation pass
How to Reproduce?
No response
Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.6.2
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: