| line |
true |
false |
branch |
|
36
|
2 |
13 |
unless assert_keyword_type($state, $schema, "object") |
|
40
|
2 |
11 |
unless exists $$schema{"discriminator"}{"propertyName"} |
|
42
|
2 |
9 |
unless is_type("string", $$schema{"discriminator"}{"propertyName"}) |
|
45
|
7 |
2 |
if (exists $$schema{"discriminator"}{"mapping"}) |
|
46
|
0 |
7 |
unless assert_keyword_type({%$state, "_keyword_path_suffix", "mapping"}, $schema, "object") |
|
48
|
2 |
5 |
unless is_type("object", $$schema{"discriminator"}{"mapping"}) |
|
51
|
2 |
3 |
unless is_type("string", $uri) |
|
60
|
0 |
11 |
unless is_type("object", $data) |
|
71
|
3 |
1 |
unless exists $$data{$discriminator_key} or exists $$schema{"discriminator"}{"defaultMapping"} |
|
75
|
3 |
5 |
if (exists $$schema{'discriminator'}{'mapping'} and exists $$schema{'discriminator'}{'mapping'}{$discriminator_value}) { } |
|
|
4 |
1 |
elsif ($$state{'document'}->get_entity_at_location('/components/schemas/' . $discriminator_value) eq 'schema') { } |
|
85
|
2 |
1 |
$mapping =~ /^#/u ? : |