line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package JSV::Keyword::Draft4::AllOf; |
2
|
|
|
|
|
|
|
|
3
|
44
|
|
|
44
|
|
29528
|
use strict; |
|
44
|
|
|
|
|
80
|
|
|
44
|
|
|
|
|
1018
|
|
4
|
44
|
|
|
44
|
|
197
|
use warnings; |
|
44
|
|
|
|
|
80
|
|
|
44
|
|
|
|
|
1041
|
|
5
|
44
|
|
|
44
|
|
189
|
use parent qw(JSV::Keyword); |
|
44
|
|
|
|
|
77
|
|
|
44
|
|
|
|
|
212
|
|
6
|
|
|
|
|
|
|
|
7
|
44
|
|
|
44
|
|
1960
|
use JSV::Keyword qw(:constants); |
|
44
|
|
|
|
|
72
|
|
|
44
|
|
|
|
|
11410
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub instance_type() { INSTANCE_TYPE_ANY(); } |
10
|
|
|
|
|
|
|
sub keyword() { "allOf" } |
11
|
|
|
|
|
|
|
sub keyword_priority() { 10; } |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub validate { |
14
|
43
|
|
|
43
|
0
|
74
|
my ($class, $context, $schema, $instance) = @_; |
15
|
|
|
|
|
|
|
|
16
|
43
|
|
|
|
|
159
|
my $all_of = $class->keyword_value($schema); |
17
|
|
|
|
|
|
|
|
18
|
43
|
|
|
|
|
145
|
for (my $i = 0, my $l = scalar(@$all_of); $i < $l; $i++) { |
19
|
86
|
|
|
|
|
139
|
my $sub_schema = $all_of->[$i]; |
20
|
|
|
|
|
|
|
local $context->{current_schema_pointer} = |
21
|
86
|
|
|
|
|
358
|
$context->{current_schema_pointer} . "/" . $class->keyword . "/" . $i; |
22
|
86
|
|
|
|
|
239
|
$context->validate($sub_schema, $instance); |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |