class

Schematics::ArrayValidator(T)

Inherits Schematics::Validator / Reference / Object

Validator for Array types

Constructors

new(element_validator : Schematics::Validator(T), min_size : Int32 | Nil = nil, max_size : Int32 | Nil = nil)
Source

Instance methods

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