Subject: | Value-based dependency check fails in some cases |
DFV supports making extra fields required based on the value of some field, using a syntax like this:
Show quoted text
> dependencies => {
> cc_type => {
> Check => [qw( cc_num )],
> Visa => [qw( cc_num cc_exp cc_name )],
> },
> },
In some cases, a single valued input for "cc_type" is being converted to an arrayref with only one value. In this case, the check fails when it shouldn't. Single-valued arrayrefs should be handled better in this case.