// Try this. Syntax is changed for new version of joi
const schema = Joi.object({ name: Joi.string() .min(6) .required(),
email: Joi.string() .min(6) .required() .email(),
password: Joi.string() .min(6) .required() });
const validation = schema.validate(req.body);
res.send(validation);
joi validation
Code Example |
---|
:: replace class jquery |
Javascript :: |
:: |
:: |
Javascript :: window.href |
:: |
Javascript :: |
:: |
:: |
:: javascript replace all characters except letters and numbers |
:: |
Javascript :: javascript check uncheck checkbox |
:: |
:: |
Javascript :: |
Javascript :: |
Javascript :: javascript password generator example |
Javascript :: |
Javascript :: increase font size chartjs |
:: jquery get all title |
:: |
Javascript :: |
Javascript :: |
:: console.log formdata |
:: javascript scroll to bottom |
:: |
Javascript :: find max between 2 numbers javascript |
:: |
:: |
:: |