i'd like a method that returns a list of the fields that failed validation 
in Mojolicious::Validator::Validation. this allows for easier validation 
error handling when not using the form tag helpers

something as simple as this would probably do it

sub error_fields {
    my $self=shift;
    return $self->has_error ? keys($self->{error}) : undef;
}

once you have this list you can get the details via the existing $v->error 
method

or... a method that returns a hashref similar to the MojoX::Validator 
errors() method would work also

jay

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to