Subject: | PositiveInt does not work |
MouseX::Types doesn't seem to work for the PositiveInt example given in the documentation. Whenever I try to use it and then set the value to 1 (which is a positive integer), I get this error:
Attribute (max_redirects) does not pass the type constraint because: Validation failed for 'PositiveInt' with value 1 at /Library/Perl/5.16/darwin-thread-multi-2level/Mouse/Util.pm line 383.
Mouse::Util::throw_error('Mouse::Meta::Attribute=HASH(0x7fc33429a828)', 'Attribute (max_redirects) does not pass the type constraint b...', 'data', 1, 'depth', -1) called at test.pl line 7
I also get the same error when I try to use MouseX::Types::Common for PositiveInt.