Skip Menu |

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

Report information
The Basics
Id: 33404
Status: new
Priority: 0/
Queue: Data-Validate-XSD

People
Owner: Nobody in particular
Requestors: giancarlo [...] capybara-software.com
Cc:
AdminCc:

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



Subject: 2 bugs detected in XSD.pm
Hi I've fount the following errors so far. In the documentation: lines 54 and 58. This is the right way to state the simpleTypes. In the actual file it was simpleTypes=>[....] and that gived an error about trying to coerce an array into a hash. simpleTypes => { confirm => { base => 'id', match => '/input/password' }, rname => { base => 'name', minLength => 1 }, password => { base => 'id', minLength => 6 }, }, On validate method: I added this: $self->{'data'} = $data; on line 303 since it was not stated anywhere and that lead to errors since the Data won't be loaded anywhere and get lost. That happens when I was trying to use the example the author gave and no match was possible. I'm attaching the File with the things I edited to fix the bug, hope it helps.
Subject: XSD.pm

Message body is not shown because it is too large.