Subject: | Params::Validate 'depends' spec parameter not working |
The depends spec parameter (see: https://metacpan.org/pod/Params::Validate#Dependencies) is not passed to Params::Validate
Patch attached
Subject: | Validate.pm.patch |
--- Validate.pm 2014-09-06 19:27:57.236931200 +0200
+++ Validate.new.pm 2014-09-06 19:29:39.840187400 +0200
@@ -347,6 +347,8 @@
if exists $spec->{default};
$pv_spec{coerce} = $spec->{coerce}
if exists $spec->{coerce};
+ $pv_spec{depends} = $spec->{depends}
+ if exists $spec->{depends};
my $constraint;
if (defined $spec->{isa})
@@ -460,4 +462,4 @@
=cut
-1; # End of MouseX::Params::Validate
\ No newline at end of file
+1; # End of MouseX::Params::Validate