NAME
Validator::Declarative - Declarative parameters validation
VERSION
version 1.20130718.2341
SYNOPSIS
sub MakeSomethingCool {
my $serialized_parameters;
my ( $ace_id, $upm_id, $year, $week, $timestamp_ms ) = Validator::Declarative->validate(
\@_ => [
ace_id => 'id',
upm_id => 'id',
year => 'year',
week => 'week',
timestamp_ms => [ 'to_msec', 'mdy', 'timestamp' ],
],
);
# here all parameters are validated
# .......
}
DESCRIPTION
METHODS
validate(\@params => \@rules)
register_type( $name => $code, ...)
register_converter( $name => $code, ...)
register_constraint( $name => $code, ...)
SEE ALSO
Inspired by Validator::LIVR - https://github.com/koorchik/Validator-LIVR
AUTHOR
Oleg Kostyuk, <cub at cpan.org>
BUGS
Please report any bugs or feature requests to Github https://github.com/cub-uanic/Validator-Declarative
AUTHOR
Oleg Kostyuk <cub@cpan.org>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2013 by Oleg Kostyuk.
This is free software, licensed under:
The (three-clause) BSD License