line |
true |
false |
branch |
32
|
1 |
11 |
unless assert_keyword_type($state, $schema, "object")
|
36
|
1 |
10 |
unless exists $schema->{'discriminator'}{'propertyName'}
|
38
|
1 |
9 |
unless is_type("string", $schema->{'discriminator'}{'propertyName'})
|
41
|
8 |
1 |
if (exists $schema->{'discriminator'}{'mapping'})
|
42
|
1 |
7 |
unless assert_keyword_type({%$state, "_schema_path_suffix", "mapping"}, $schema, "object")
|
44
|
0 |
7 |
unless is_type("object", $schema->{'discriminator'}{'mapping'})
|
47
|
1 |
6 |
unless is_type("string", $uri)
|
52
|
1 |
7 |
unless grep exists $schema->{$_}, ("oneOf", "anyOf", "allOf")
|
59
|
0 |
6 |
unless is_type("object", $data)
|
65
|
1 |
5 |
unless exists $data->{$discriminator_key}
|
72
|
2 |
3 |
if (my $component_schema_info = $state->{'evaluator'}->_fetch_from_uri($uri)) { }
|
|
2 |
1 |
elsif (exists $schema->{'discriminator'}{'mapping'} and exists $schema->{'discriminator'}{'mapping'}{$discriminator_value}) { }
|
86
|
2 |
2 |
unless $self->eval_subschema_at_uri($data, $schema, $state, $uri)
|