positive_integer
Checks that the value is an integer greater than zero.
Error codes: NOT_POSITIVE_INTEGER, FORMAT_ERROR
rules
input
Invaliderrors
{
"quantity": "NOT_POSITIVE_INTEGER"
}Checks that the value is an integer greater than zero.
Error codes: NOT_POSITIVE_INTEGER, FORMAT_ERROR
{
quantity: 'positive_integer'
}{
quantity: 0
}{
"quantity": "NOT_POSITIVE_INTEGER"
}