NAME

FormValidator::Nested - form validation

SYNOPSIS

use FormValidator::Nested;
use Path::Class;

my $req = Path::Class->new();
my $fvt = FormValidator::Nested->new({
    profile_provider => FormValidator::Nested::ProfileProvider::YAML->new({
        dir => 't/var/profile',
    }),
});
my $res = $fvt->validate($req, 'login');
if ( $res->has_error ) {
    while ( my ( $key, $error_params ) = %{$res->error_params} ) {
        foreach my $error_param ( @{$error_params} ) {
            warn $error_param->msg;
        }
    }
}

DESCRIPTION

FormValidator::Nested is form validation support nested parameter.

AUTHOR

Masahiro Chiba <nihen@megabbs.com>

SEE ALSO

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.