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

joi validation function called as async, leading to incorrect error handling #167

Open
DanielAnfelt opened this issue Nov 27, 2019 · 0 comments

Comments

@DanielAnfelt
Copy link
Contributor

In Validators.js, there is a call const result = await schema.validate(data); which does not seem to work as intended. The joi validation will return an object with a error property and a result. When I run the current code, I get the validation error, but not through the indented flow. As a result, the details that explain what I messed up don't propagate back to me.

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