Skip to content

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

Open
@JeremyGendre

Description

@JeremyGendre

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions