Subject: | Can't set validation_options() for P::V |
MX::P::V doesn't allow me to pass any validation_options using
validate_with, meaning the only way to set options is via the rather ugly:
{ package MooseX::Params::Validate;
use Params::Validate ();
Params::Validate::validation_options(
allow_extra => 1, # unknown keys are silently ignored
);
}
Which also means they're immediately global, and no longer per package.
Would be nice to have a cleaner way to do this.