class Openapi3Parser::Validators::Email
Constants
- REGEX
Regex is sourced from HTML specification: html.spec.whatwg.org/#e-mail-state-(type=email)
Public Class Methods
call(input)
click to toggle source
# File lib/openapi3_parser/validators/email.rb, line 17 def self.call(input) message = %("#{input}" is not a valid email address) message unless REGEX.match(input) end