Skip to content

positive_integer ​

Checks that the value is an integer greater than zero.

Error codes: NOT_POSITIVE_INTEGER, FORMAT_ERROR

Live example · edit rules or inputOpen in playground
rules
input
Invaliderrors
{
  "quantity": "NOT_POSITIVE_INTEGER"
}