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
|
|
45
|
use strict; |
|
6
|
|
|
|
|
15
|
|
|
6
|
|
|
|
|
207
|
|
6
|
6
|
|
|
6
|
|
32
|
use warnings; |
|
6
|
|
|
|
|
14
|
|
|
6
|
|
|
|
|
198
|
|
7
|
|
|
|
|
|
|
|
8
|
6
|
|
|
6
|
|
2612
|
use JSONSchema::Validator::Constraints::Draft6; |
|
6
|
|
|
|
|
20
|
|
|
6
|
|
|
|
|
191
|
|
9
|
|
|
|
|
|
|
|
10
|
6
|
|
|
6
|
|
42
|
use parent 'JSONSchema::Validator::Draft4'; |
|
6
|
|
|
|
|
12
|
|
|
6
|
|
|
|
|
27
|
|
11
|
|
|
|
|
|
|
|
12
|
6
|
|
|
6
|
|
337
|
use constant SPECIFICATION => 'Draft6'; |
|
6
|
|
|
|
|
12
|
|
|
6
|
|
|
|
|
369
|
|
13
|
6
|
|
|
6
|
|
35
|
use constant ID => 'http://json-schema.org/draft-06/schema#'; |
|
6
|
|
|
|
|
11
|
|
|
6
|
|
|
|
|
237
|
|
14
|
6
|
|
|
6
|
|
30
|
use constant ID_FIELD => '$id'; |
|
6
|
|
|
|
|
14
|
|
|
6
|
|
|
|
|
659
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub new { |
17
|
28
|
|
|
28
|
1
|
20417
|
my ($class, %params) = @_; |
18
|
|
|
|
|
|
|
|
19
|
28
|
|
|
|
|
146
|
my $self = $class->create(%params); |
20
|
|
|
|
|
|
|
|
21
|
28
|
|
50
|
|
|
228
|
my $constraints = JSONSchema::Validator::Constraints::Draft6->new(validator => $self, strict => $params{strict} // 1); |
22
|
28
|
|
|
|
|
62
|
$self->{constraints} = $constraints; |
23
|
|
|
|
|
|
|
|
24
|
28
|
|
|
|
|
86
|
return $self; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
__END__ |