Validators not supporting Double

Hi

IllegalArgumentException: DecimalMinValidator doesn’t support following type: ‘class java.lang.Double’

It seems that decimalMin, decimalMax and digits validators do not support Double while they support BigDecimal.

Surprising. Is there a particular reason ?

Regards
Michael

Hello @michael.renaud

In fact it’s described in documentation: DecimalMiinValidator

Supported types: BigDecimal , BigInteger , Long , Integer , and String that represents BigDecimal value with the current locale.

To validate Double you should use DoubleMinValidator / DoubleMaxValidator.

Unfortunately these validators are not in our documentation now, so I’ve filed an issue: GitHub

Regards,
Daniil

Ok thanks @tsarev