joi
joi copied to clipboard
Incorrect documentation for string().email() 'allowUnderscore' option
Context
- node version: 18.11.0
- module version: 17.9.1
What are you trying to achieve or the steps to reproduce ?
To verify my email strings, i would like to allow underscores in the EmailOptions object. However, it seems that the allowUnderscore described in the 17.9.1 documentation doesn't actually exists.
Joi.string().email({ allowUnderscore: true }) // Error: Options contain unknown keys: allowUnderscore