Skip Menu |

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

Report information
The Basics
Id: 59622
Status: new
Priority: 0/
Queue: Config-Validate

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

Bug Information
Severity: Normal
Broken in: 0.2.6
Fixed in: (no value)



Subject: Can't validate complex array elements
As far as I can tell, it's not possible to validate the elements in an array of hashes, as in foo => [ { a => 1 } , { a => 2 }, { a => 3 } ]; I imagined that this might work: foo => { type => 'array', subtype => 'nested', child => { a => { type => 'integer' } } }; But that returns: 'nested' is not valid here. subtype => 'hash' doesn't work either, as it tries to turn the sub-hash values (1, 2, 3 ) into hashrefs (it should probably check for that!) and dies nastily: Can't use string ("1") as a HASH ref while "strict refs" in use