hapijs / hapijs/joi

How to display external error in parallel with Joi asyncValidation ??

Open
#2,783 5 comments 0 reactions 1 assignee Claimed by @Marsup View on GitHub
Dominant language
JavaScript
Stars
21.2k
Forks
1.5k
Avg merge
4h 57m
Merged PRs (30d)
14

Description

Hey is it possible to return own external validation error like - check isLoginExist in DB and if there is, return error with with Joi Errors ? For now, I am showing that error after all of them from Joi. If password & confirmedPassword don't match the Joi validation is informing about that but not about isLoginTaken. After corrected password matches the isLoginExist error will be returned. Is it possible ??

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.