blib/lib/JSONSchema/Validator/OAS30.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 38 | 59 | 64.4 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
48 | 90 | 31 | 0 | $direction ne "request" and $direction ne "response" |
73 | 456 | 4 | 2 | $schema->{'deprecated'} and not $self->validate_deprecated |
190 | 0 | 0 | 15 | $user_body and @$user_body |
234 | 45 | 17 | 15 | not $exists and $type eq "header" |
310 | 12 | 0 | 32 | $schema_prop_ptr and $content_type |
12 | 27 | 5 | $schema_prop_ptr and $content_type and index($content_type, 'application/x-www-form-urlencoded') != -1 || index($content_type, 'multipart/') != -1 | |
27 | 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 | 121 | $params{'instance_path'} // "/" |
43 | 0 | 121 | $params{'schema_path'} // "/" |
76 | 24 | 28 | $data->{'discriminator'}{$instance_path} // 0 |
94 | 22 | 0 | $params{'parameters'}{'body'} // [] |
140 | 22 | 0 | $params{'parameters'}{'body'} // [] |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
41 | 86 | 35 | 0 | $params{'schema'} // $self->schema |
89 | 22 | 0 | 0 | $params{'method'} || croak('param "method" is required') |
134 | 22 | 0 | 0 | $params{'method'} || croak('param "method" is required') |
249 | 42 | 16 | 0 | $data_ptr->xget("schema") or $data_ptr->xget("content") |
310 | 5 | 0 | 27 | index($content_type, 'application/x-www-form-urlencoded') != -1 || index($content_type, 'multipart/') != -1 |