positive_decimal
Checks that the value is a number greater than zero.
Error codes: NOT_POSITIVE_DECIMAL, FORMAT_ERROR
rules
input
Invaliderrors
{
"price": "NOT_POSITIVE_DECIMAL"
}Checks that the value is a number greater than zero.
Error codes: NOT_POSITIVE_DECIMAL, FORMAT_ERROR
{
price: 'positive_decimal'
}{
price: -5
}{
"price": "NOT_POSITIVE_DECIMAL"
}