You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What a good catch! Indeed, the @Size annotation is not honored in this case.
However, due to type erasure, I'm not sure it is possible to introspect the annotation on a generic type. I added a note about this limitation in the known limitations section of the wiki. You can use a custom randomizer for this kind of fields.
Hello there,
I have a Set of Strings in my bean, and when generating a random instance, the generated strings don't respect the annotations.
private Set<@Size(min = 1, max = 10) String> listOfStrings;
Thanks
The text was updated successfully, but these errors were encountered: