OpenLiberty / liberty-tools-vscode

Visual Studio Code extension for Liberty Tools
https://marketplace.visualstudio.com/items?itemName=Open-Liberty.liberty-dev-vscode-ext
Eclipse Public License 2.0
18 stars 35 forks source link

Diagnostics and quick fix is not coming for the field annotated with @PositiveOrZero annotation #389

Open gilbysunil14 opened 1 week ago

gilbysunil14 commented 1 week ago

Diagnostics and quick fix is not coming for the field annotated with @PositiveOrZero annotation. An example is given below:

@PositiveOrZero
private List<String> maybeZero;

Excepted diagnostics: The @PositiveOrZero annotation can only be used on - BigDecimal - BigInteger - byte, short, int, long, float, double (and their respective wrappers) type fields. jakarta-bean-validation (FixTypeOfElement)

Expected quick fix: Remove constraint annotation jakarta.validation.constraints.PositiveOrZero from element