lsp4jakarta
lsp4jakarta copied to clipboard
Support Diagnostics in Java Record fields for Jakarta Validation
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
- [x] diagnostic
- [ ] quick-fix
- [ ] snippet
- [ ] other, please specify:
This should be added for Jakarta EE 11
This required for Jakarta EE 11: support Validation 3.1. Could you please prioritise.