Skip to content

Commit

Permalink
more validator documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 17, 2013
1 parent ca4a61b commit ca78a52
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/Mojolicious/Validator/Validation.pm
Expand Up @@ -110,7 +110,7 @@ L<Mojolicious::Validator::Validation> implements the following attributes.
=head2 input
my $input = $validation->input;
$validation = $validation->input({});
$validation = $validation->input({foo => 'bar', baz => [123, 'yada']});
Data to be validated.
Expand All @@ -126,7 +126,7 @@ Validated data.
my $topic = $validation->topic;
$validation = $validation->topic('foo');
Current validation topic.
Name of field currently being validated.
=head2 validator
Expand All @@ -151,7 +151,8 @@ will be performend on them after the first one failed.
my $err = $validation->error('foo');
Return details about failed validation check.
Return details about failed validation check, at any given time there can only
be one per field.
my ($check, $result, @args) = @{$validation->error('foo')};
Expand Down

0 comments on commit ca78a52

Please sign in to comment.