Skip to content

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

Open
@ro-pal

Description

@ro-pal

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 ??

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions