Skip to content
New issue

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

Implementations of interfaces should be allowed for Validation annotations #527

Open
1 of 4 tasks
mswatosh opened this issue May 28, 2024 · 1 comment
Open
1 of 4 tasks

Comments

@mswatosh
Copy link

mswatosh commented May 28, 2024

Description:

I noticed this with CharSequence, but there may be others. The Validation spec uses CharSequence as a type for validation because it covers String, StringBuffer, StringBuilder, and others. Anywhere the spec allows CharSequence we should allow its implementing types.

In some cases, such as @DecimalMax which allows CharSequence, we are currently indicating that String is not a valid Type for the annotation, even though it is.

Specification:

Jakarta Validation

Type of language feature proposed:

Select all that apply

  • diagnostic
  • quick-fix
  • snippet
  • other, please specify:
@mswatosh
Copy link
Author

mswatosh commented Jun 6, 2024

This should be added for Jakarta EE 11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant