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

Validation on nested fields not working. #1245

Open
tony-sunny opened this issue Sep 14, 2023 · 1 comment · May be fixed by #1279
Open

Validation on nested fields not working. #1245

tony-sunny opened this issue Sep 14, 2023 · 1 comment · May be fixed by #1279
Labels

Comments

@tony-sunny
Copy link

Describe the bug

For some inputs, validation on nested fields accessed by dot (.) is not returning error
This was working in v6 but changed in v7

To Reproduce

Please check https://runkit.com/tony-sunny/6503695da7894b0008762533

Expected behavior

Expected validation chain to return error

Current behavior

There are no errors in validaiton result

Environment:

  • Express-validator version: 7.0.1
  • Express version: 4.18.2
  • Node.js version: 18.16.1
@fedeci
Copy link
Member

fedeci commented Feb 16, 2024

Opened a PR

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

Successfully merging a pull request may close this issue.

2 participants