blib/lib/JSONSchema/Validator/OAS30.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 38 | 59 | 64.4 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
48 | 86 | 24 | 0 | $direction ne "request" and $direction ne "response" |
73 | 431 | 4 | 2 | $schema->{'deprecated'} and not $self->validate_deprecated |
190 | 0 | 0 | 14 | $user_body and @$user_body |
230 | 41 | 16 | 9 | not $exists and $type eq "header" |
310 | 6 | 0 | 30 | $schema_prop_ptr and $content_type |
6 | 25 | 5 | $schema_prop_ptr and $content_type and index($content_type, 'application/x-www-form-urlencoded') != -1 || index($content_type, 'multipart/') != -1 | |
25 | 0 | 5 | $schema_prop_ptr and $content_type and index($content_type, 'application/x-www-form-urlencoded') != -1 || index($content_type, 'multipart/') != -1 and ref $data eq "HASH" | |
324 | 0 | 7 | 2 | $prop_type_ptr && $prop_type_ptr->value eq 'object' |
327 | 7 | 0 | 5 | index($property_ctype, "application/json") != -1 and exists $data->{$property_name} |
0 | 0 | 5 | index($property_ctype, "application/json") != -1 and exists $data->{$property_name} and not ref $data->{$property_name} |
line | l | !l | condition |
---|---|---|---|
27 | 3 | 36 | $params{'validate_deprecated'} // 1 |
30 | 0 | 39 | $params{'strict'} // 0 |
42 | 0 | 110 | $params{'instance_path'} // "/" |
43 | 0 | 110 | $params{'schema_path'} // "/" |
76 | 24 | 28 | $data->{'discriminator'}{$instance_path} // 0 |
94 | 21 | 0 | $params{'parameters'}{'body'} // [] |
140 | 21 | 0 | $params{'parameters'}{'body'} // [] |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
41 | 75 | 35 | 0 | $params{'schema'} // $self->schema |
89 | 21 | 0 | 0 | $params{'method'} || croak('param "method" is required') |
134 | 21 | 0 | 0 | $params{'method'} || croak('param "method" is required') |
245 | 39 | 9 | 0 | $data_ptr->xget("schema") or $data_ptr->xget("content") |
310 | 5 | 0 | 25 | index($content_type, 'application/x-www-form-urlencoded') != -1 || index($content_type, 'multipart/') != -1 |