class Amber::Schema::Validator::Format

Defined in:

amber/schema/validators/format.cr

Constructors

Instance Method Summary

Instance methods inherited from class Amber::Schema::Validator::Base

validate(context : Context) : Nil validate

Constructor Detail

def self.new(field_name : String, format : FormatType, pattern : Nil = nil) #

[View source]
def self.new(field_name : String, format : FormatType, pattern : Regex) #

Compiles only in an app that passes a Regex, so other apps link no regex engine.


[View source]

Instance Method Detail

def validate(context : Context) : Nil #

[View source]