{"size": 216, "ext": "js", "max_stars_repo_path": "server/src/validation/email.js", "max_stars_repo_name": "raduleo19/HackITall2020", "max_stars_repo_stars_event_min_datetime": "2020-08-17T22:29:52.000Z", "max_stars_repo_stars_event_max_datetime": "2021-04-16T00:31:58.000Z", "max_issues_repo_path": "server/src/validation/email.js", "max_issues_repo_name": "raduleo19/HackITall2020", "max_issues_repo_issues_event_min_datetime": "2021-04-26T04:06:22.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-28T04:01:38.000Z", "max_forks_repo_path": "src/validation/email.js", "max_forks_repo_name": "ihebu/express-auth", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 3, "max_issues_count": 70, "max_forks_count": null, "avg_line_length": 19.6363636364, "max_line_length": 48, "alphanum_fraction": 0.6388888889}
const Joi = require("@hapi/joi");

validateEmail = (data) => {
  const schema = Joi.object({
    email: Joi.string().min(6).max(256).email(),
  });
  return schema.validate(data);
};

module.exports = validateEmail;
