line |
true |
false |
branch |
67
|
0 |
7 |
exists $api->{'paths'}{$path}{'parameters'} ? :
|
|
7 |
0 |
exists $api->{'paths'}{$path}{$method}{'parameters'} ? :
|
|
0 |
7 |
exists $api->{'paths'}{$path}{$method}{'requestBody'} ? :
|
72
|
0 |
7 |
if (&blessed($par_hash))
|
78
|
7 |
0 |
if $description->{'schema'}
|
79
|
1 |
6 |
unless (exists $par_hash->{$name})
|
80
|
0 |
1 |
if ($schema and exists $schema->{'default'})
|
86
|
0 |
6 |
if ($schema and $schema->{'type'} eq 'array') { }
|
88
|
0 |
0 |
ref $par_hash->{$name} eq 'ARRAY' ? :
|
90
|
0 |
0 |
if defined $value
|
91
|
0 |
0 |
unless defined $value
|
93
|
0 |
0 |
if @good_values
|
94
|
0 |
0 |
if $reporter and @bad_values
|
97
|
4 |
2 |
if defined $value
|
98
|
0 |
6 |
if ($reporter)
|
122
|
6 |
0 |
if $schema
|
126
|
0 |
6 |
if (not defined $format) { }
|
|
1 |
5 |
elsif ($format eq 'date-time') { }
|
|
0 |
5 |
elsif ($format eq 'email') { }
|
|
5 |
0 |
elsif ($format eq 'integer') { }
|
|
0 |
0 |
elsif ($format eq 'ipv4') { }
|
|
0 |
0 |
elsif ($format eq 'ipv6') { }
|
|
0 |
0 |
elsif ($format eq 'uri') { }
|
|
0 |
0 |
elsif ($format eq 'uuid') { }
|
144
|
0 |
0 |
if ($value =~ /^([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})$/i) { }
|
151
|
2 |
4 |
unless defined $value
|
153
|
0 |
4 |
if ($schema and $schema->{'enum'})
|
155
|
0 |
0 |
unless defined $value
|
158
|
0 |
4 |
if ($schema and $schema->{'pattern'})
|
159
|
0 |
0 |
unless $value =~ /^($schema->{'pattern'})$/
|