line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package JSV::Keyword::Draft4::AllOf; |
2
|
|
|
|
|
|
|
|
3
|
47
|
|
|
47
|
|
36395
|
use strict; |
|
47
|
|
|
|
|
95
|
|
|
47
|
|
|
|
|
1296
|
|
4
|
47
|
|
|
47
|
|
250
|
use warnings; |
|
47
|
|
|
|
|
146
|
|
|
47
|
|
|
|
|
1359
|
|
5
|
47
|
|
|
47
|
|
243
|
use parent qw(JSV::Keyword); |
|
47
|
|
|
|
|
90
|
|
|
47
|
|
|
|
|
333
|
|
6
|
|
|
|
|
|
|
|
7
|
47
|
|
|
47
|
|
2717
|
use JSV::Keyword qw(:constants); |
|
47
|
|
|
|
|
89
|
|
|
47
|
|
|
|
|
14379
|
|
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
|
93
|
my ($class, $context, $schema, $instance) = @_; |
15
|
|
|
|
|
|
|
|
16
|
43
|
|
|
|
|
172
|
my $all_of = $class->keyword_value($schema); |
17
|
|
|
|
|
|
|
|
18
|
43
|
|
|
|
|
183
|
for (my $i = 0, my $l = scalar(@$all_of); $i < $l; $i++) { |
19
|
86
|
|
|
|
|
167
|
my $sub_schema = $all_of->[$i]; |
20
|
|
|
|
|
|
|
local $context->{current_schema_pointer} = |
21
|
86
|
|
|
|
|
466
|
$context->{current_schema_pointer} . "/" . $class->keyword . "/" . $i; |
22
|
86
|
|
|
|
|
295
|
$context->validate($sub_schema, $instance); |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |