Skip to content

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

@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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @JeremyGendre

      Issue actions

        Incorrect documentation for string().email() 'allowUnderscore' option · Issue #2972 · hapijs/joi