Skip Menu |

This queue is for tickets about the JSON-Schema CPAN distribution.

Report information
The Basics
Id: 104485
Status: new
Priority: 0/
Queue: JSON-Schema

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

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



Subject: Small error in POD
In JSON-Schema-0.016 POD there is an example: ``` my $validator = JSON::Schema->new({ properties => { 'time' => { type => ['DateTime','string'] }, }, }); my $object = { 'time' => DateTime->now; }; my $result = $schema->validate($object); ``` But this example is incorrect. The last line in the example should be changed to: ``` my $result = $validator->validate($object); ```