eclipse / lsp4jakarta

Language Server for Jakarta EE
Eclipse Public License 2.0
33 stars 51 forks source link

Support Diagnostics in Java Record fields for Jakarta Validation #526

Open mswatosh opened 5 months ago

mswatosh commented 5 months ago

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

mswatosh commented 5 months ago

This should be added for Jakarta EE 11