email()
Validates that the string is a valid email address.
email(error?: StringConvertible): this;
Notes
- Uses a simple pattern check (non-whitespace,
@, dot in domain); not a full RFC 5322 validation.
Parameters
- error — Custom error message.
Return value
This builder, for chaining.
Examples
f.string().email("Please enter a valid email address")
Related
interface Schema.StringBuilder static
A validation builder for string values.
