enum CrSerializer::Assertions::EmailValidationMode
Overview
Which validation pattern to use to validate the email string
Defined in:
CrSerializer/assertions/email.crEnum Members
-
LOOSE =
0
-
A simple regular expression. Allows all values with an
@
symbol in, and a.
in the second host part of the email address. -
HTML5 =
1
-
This matches the pattern used for the HTML5 email input element
-
STRICT =
2
-
TODO Validate against RFC5322
Instance Method Summary
Instance methods inherited from struct Enum
to_json(json : JSON::Builder, serialization_groups : Array(String), expand : Array(String))
to_json,
to_yaml(yaml : YAML::Nodes::Builder, serialization_groups : Array(String), expand : Array(String))
to_yaml
Instance methods inherited from class Object
to_json(io : IO, serialization_groups : Array(String), expand : Array(String))to_json(serialization_groups : Array(String) = ["default"], expand : Array(String) = [] of String) : String to_json, to_pretty_json(indent : String = " ", serialization_groups : Array(String) = ["default"], expand : Array(String) = [] of String)
to_pretty_json(io : IO, serialization_groups : Array(String), expand : Array(String), indent : String = " ") to_pretty_json, to_yaml(serialization_groups : Array(String) = ["default"], expand : Array(String) = [] of String) : String to_yaml