Skip Menu |

This queue is for tickets about the Config-Validate CPAN distribution.

Report information
The Basics
Id: 33372
Status: resolved
Priority: 0/
Queue: Config-Validate

People
Owner: Nobody in particular
Requestors: djerius [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.2.4
Fixed in: (no value)



Subject: path for array elements doesn't report the array index
Paths don't include array index information. For example: my %schema = ( s => { type => 'array', subtype => 'integer' } ); validate( schema => \%schema, config => { s => [ 1, 'frank', 3 ] } ); results in Config::Validate::validate(): [/s] should be an integer, but has value of 'frank' instead Perhaps something like "[/s[1]] should be an integer..." similar to Data::Path? Thanks, Diab
Implemented as suggested in 0.2.6. Just uploaded that version to CPAN. Good catch.