boolean()
Get a schema object of type boolean.
None
const schema = racoon.boolean(); schema.validate(1); // fail schema.validate(true); // pass schema.validate(false); // pass
Last updated 3 years ago