line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package JSONSchema::Validator::Draft6; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
# ABSTRACT: Validator for JSON Schema Draft6 |
4
|
|
|
|
|
|
|
|
5
|
6
|
|
|
6
|
|
47
|
use strict; |
|
6
|
|
|
|
|
14
|
|
|
6
|
|
|
|
|
198
|
|
6
|
6
|
|
|
6
|
|
39
|
use warnings; |
|
6
|
|
|
|
|
15
|
|
|
6
|
|
|
|
|
163
|
|
7
|
|
|
|
|
|
|
|
8
|
6
|
|
|
6
|
|
2954
|
use JSONSchema::Validator::Constraints::Draft6; |
|
6
|
|
|
|
|
19
|
|
|
6
|
|
|
|
|
201
|
|
9
|
|
|
|
|
|
|
|
10
|
6
|
|
|
6
|
|
49
|
use parent 'JSONSchema::Validator::Draft4'; |
|
6
|
|
|
|
|
14
|
|
|
6
|
|
|
|
|
27
|
|
11
|
|
|
|
|
|
|
|
12
|
6
|
|
|
6
|
|
402
|
use constant SPECIFICATION => 'Draft6'; |
|
6
|
|
|
|
|
16
|
|
|
6
|
|
|
|
|
358
|
|
13
|
6
|
|
|
6
|
|
37
|
use constant ID => 'http://json-schema.org/draft-06/schema#'; |
|
6
|
|
|
|
|
14
|
|
|
6
|
|
|
|
|
263
|
|
14
|
6
|
|
|
6
|
|
37
|
use constant ID_FIELD => '$id'; |
|
6
|
|
|
|
|
13
|
|
|
6
|
|
|
|
|
778
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub new { |
17
|
28
|
|
|
28
|
1
|
20576
|
my ($class, %params) = @_; |
18
|
|
|
|
|
|
|
|
19
|
28
|
|
|
|
|
135
|
my $self = $class->create(%params); |
20
|
|
|
|
|
|
|
|
21
|
28
|
|
50
|
|
|
339
|
my $constraints = JSONSchema::Validator::Constraints::Draft6->new(validator => $self, strict => $params{strict} // 1); |
22
|
28
|
|
|
|
|
60
|
$self->{constraints} = $constraints; |
23
|
|
|
|
|
|
|
|
24
|
28
|
|
|
|
|
163
|
return $self; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
__END__ |