class Schematics::ArrayValidator(T)

Overview

Validator for Array types

Defined in:

validators.cr

Constructors

Instance Method Summary

Instance methods inherited from class Schematics::Validator(Array(T))

call(value) : T(T) | Nil call, validate(value, path : String = "root") : ValidationResult validate

Constructor Detail

def self.new(element_validator : Schematics::Validator(T), min_size : Int32 | Nil = nil, max_size : Int32 | Nil = nil) #

[View source]

Instance Method Detail

def call(value) : Array(T) | Nil #

[View source]
def validate(value, path : String = "root") : ValidationResult #

[View source]