podam icon indicating copy to clipboard operation
podam copied to clipboard

What is the latest version supports javax.validation?

Open onacit opened this issue 1 year ago • 1 comments

Due to some circumstance, I need to randomize instance whose fields annotated with javax.validation.

I'm trying with 7.2.11.RELEASE which seems the last release supports the javax.validation package.

When I randomize for the following class,

public class Some {

    @javax.validation.constraints.Size(max = 7)
    @javax.validation.constraints.NotBlank
    private String a;

    @javax.validation.constraints.Size(max = 10)
    @javax.validation.constraints.NotNull
    private String b;
}

The output seems not valid by the @Size annotation.

{
  "a" : "BjjTfrD3_M",
  "b" : "ylCFWksEb6"
}
  • What is the latest release for the javax.validation?
  • Does the release supports the @Size annotation?

Thanks.

onacit avatar Apr 30 '25 10:04 onacit

Podam 7.2.11.RELEASE was the latest version support javax.validation. Versions 8.x support jakarta.validation.

Thanks, Daniil

daivanov avatar May 13 '25 12:05 daivanov