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
|
|
42
|
use strict; |
|
6
|
|
|
|
|
13
|
|
|
6
|
|
|
|
|
175
|
|
6
|
6
|
|
|
6
|
|
30
|
use warnings; |
|
6
|
|
|
|
|
13
|
|
|
6
|
|
|
|
|
204
|
|
7
|
|
|
|
|
|
|
|
8
|
6
|
|
|
6
|
|
2287
|
use JSONSchema::Validator::Constraints::Draft6; |
|
6
|
|
|
|
|
17
|
|
|
6
|
|
|
|
|
165
|
|
9
|
|
|
|
|
|
|
|
10
|
6
|
|
|
6
|
|
33
|
use parent 'JSONSchema::Validator::Draft4'; |
|
6
|
|
|
|
|
14
|
|
|
6
|
|
|
|
|
20
|
|
11
|
|
|
|
|
|
|
|
12
|
6
|
|
|
6
|
|
296
|
use constant SPECIFICATION => 'Draft6'; |
|
6
|
|
|
|
|
11
|
|
|
6
|
|
|
|
|
326
|
|
13
|
6
|
|
|
6
|
|
31
|
use constant ID => 'http://json-schema.org/draft-06/schema#'; |
|
6
|
|
|
|
|
12
|
|
|
6
|
|
|
|
|
208
|
|
14
|
6
|
|
|
6
|
|
30
|
use constant ID_FIELD => '$id'; |
|
6
|
|
|
|
|
15
|
|
|
6
|
|
|
|
|
583
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub new { |
17
|
28
|
|
|
28
|
1
|
20768
|
my ($class, %params) = @_; |
18
|
|
|
|
|
|
|
|
19
|
28
|
|
|
|
|
125
|
my $self = $class->create(%params); |
20
|
|
|
|
|
|
|
|
21
|
28
|
|
50
|
|
|
208
|
my $constraints = JSONSchema::Validator::Constraints::Draft6->new(validator => $self, strict => $params{strict} // 1); |
22
|
28
|
|
|
|
|
48
|
$self->{constraints} = $constraints; |
23
|
|
|
|
|
|
|
|
24
|
28
|
|
|
|
|
75
|
return $self; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
__END__ |