POSITIVE_INTEGERconstant

Sugar instance of NumberSchema for a positive integer (excluding zero). Equivalent to new NumberSchema({ step: 1, min: 1, max: Number.MAX_SAFE_INTEGER }).

Examples

POSITIVE_INTEGER.validate(0); // Throws "Required"