int()
Restrict the detected number to be an integer.
None
const schema = racoon.number().int(); schema.validate(1); // pass schema.validate(1.0); // pass schema.validate(1.2); // fail
Last updated 3 years ago