string()
Get a schema object of type string.
None
const schema = racoon.string(); schema.validate(123); // fail schema.validate('abc'); // pass
Last updated 3 years ago