mfbx9da4 / deep-email-validator

Validates regex, typos, disposable, dns and smtp
MIT License
873 stars 92 forks source link

Multiple Failures reasons expected but not received #26

Open funkel1989 opened 3 years ago

funkel1989 commented 3 years ago

When a pass an email address someone@yahgo.comm which has a bad MX record and is suggested as a Typo I only get a reason back in the typo validator when I expected a reason back in all failing validators.

Is this expected or a bug?

{
  valid: false,
  validators: {
    regex: { valid: true },
    typo: {
      valid: false,
      reason: 'Likely typo, suggested email: singletont21@yahoo.com'
    },
    disposable: { valid: false },
    mx: { valid: false },
    smtp: { valid: false }
  },
  reason: 'typo'
}