NAME

Valiant::Proxy::Array - Wrap an arrayref in a result object for validation.

SYNOPSIS

my $proxy = Valiant::Proxy::Array->new(
  validations => [
    # array elements are addressed by index, e.g. '[0]'
    [ '[0]' => presence => 1 ],
  ],
);

my $result = $proxy->validate([ 'first', 'second' ]);

DESCRIPTION

Allows you to run validations against an ArrayRef.

You probably won't use this directly, although you can.

SEE ALSO

This does the interface defined by Valiant::Proxy so see the docs on that.

Also: Valiant, Valiant::Validator, Valiant::Validator::Each.

AUTHOR

See Valiant

COPYRIGHT & LICENSE

See Valiant