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

Support Diagnostics in Java Record fields for Jakarta Validation #526

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

Support Diagnostics in Java Record fields for Jakarta Validation #526

mswatosh opened this issue May 28, 2024 · 1 comment

Comments

@mswatosh
Copy link

mswatosh commented May 28, 2024

Description:

Jakarta Validation annotations should be checked on declared fields in a Java Record.

For example, the following should report a diagnostic indicating that @AssertTrue is only valid on Boolean types.

public record TestEntity(@AssertTrue String name) {}

Specification:

Jakarta Validation 3.1

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