minor fixes
[sgn.git] / lib / CXGN / List / Validate.pm
blob8b832645e942df949121c7e12daed5c34c18fbcb
2 package CXGN::List::Validate;
4 use Moose;
6 use Module::Pluggable require => 1;
8 sub validate {
9 my $self = shift;
10 my $schema = shift;
11 my $type = shift;
12 my $list = shift;
14 my $data;
18 foreach my $p ($self->plugins()) {
19 if ($type eq $p->name()) {
20 $data = $p->validate($schema, $list);
23 return $data;