The documentation for @Postive mentions that it supports CharSequence but no implementation is found, I have attached a screenshot for your reference.
Checks if the element is strictly positive. Zero values are considered invalid.
Supported data types
BigDecimal, BigInteger, byte, short, int, long and the respective wrappers of the primitive types; additionally supported by HV: any sub-type of CharSequence (the numeric value represented by the character sequence is evaluated), any sub-type of Number and javax.money.MonetaryAmount
HV000030: No validator could be found for constraint 'javax.validation.constraints.Positive' validating type 'java.lang.String'.
Are you sure you are using 6.1.5.Final?
Because this issue got fixed in 6.1.4.Final as part of https://hibernate.atlassian.net/browse/HV-1760 .
If so, could you create a reproducer using https://github.com/hibernate/hibernate-test-case-templates/tree/master/validator ?
Sorry about this. Spring boot was picking up the older version even after I put in the newer version. After upgrading the project to spring boot 2.3.1, this issue has been resolved.
No worries, thanks for confirming!