Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Failures reasons expected but not received #26

Open
funkel1989 opened this issue May 26, 2021 · 0 comments
Open

Multiple Failures reasons expected but not received #26

funkel1989 opened this issue May 26, 2021 · 0 comments

Comments

@funkel1989
Copy link

funkel1989 commented May 26, 2021

When a pass an email address [email protected] 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: [email protected]'
    },
    disposable: { valid: false },
    mx: { valid: false },
    smtp: { valid: false }
  },
  reason: 'typo'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant