hapijs / hapijs/joi

if validation had to run failover() it should let the user know

Open
#2,527 2 comments 3 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
21.2k
Forks
1.5k
Avg merge
4h 57m
Merged PRs (30d)
14

Description

- node version: v10.19.0
- module version: v17.1
- used in environment: node

the validator should tell me that it had to run the failover() function instead of silently altering the value.

Usecase:
if email validation fails, I don't require it in my database but I need a value in order to save it. It'd also be nice to let the user know that they had an invalid email but currently that isn't possible without an indicator that failover ran.

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.