joi icon indicating copy to clipboard operation
joi copied to clipboard

Incorrect documentation for string().email() 'allowUnderscore' option

Open JeremyGendre opened this issue 11 months ago • 0 comments

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

JeremyGendre avatar Aug 07 '23 09:08 JeremyGendre