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

Schema doesn't suppor multiple custom validators #1237

Open
sombra-bykov-vladyslav opened this issue Jul 26, 2023 · 1 comment
Open

Schema doesn't suppor multiple custom validators #1237

sombra-bykov-vladyslav opened this issue Jul 26, 2023 · 1 comment

Comments

@sombra-bykov-vladyslav
Copy link

Expected behavior

Schema-supported custom validators array as mentioned in the change log for v. 7.0.1

Current behavior

I have a type issue: "Type 'ValidatorSchemaOptions<"custom">[]' is not assignable to type 'ValidatorSchemaOptions<"custom">'."

Environment:

  • Express-validator version: 7.0.1
  • Express version: 4.18.1
  • Node.js version: 18.16.1
@gustavohenke
Copy link
Member

What's your code like?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants