line |
true |
false |
branch |
208
|
52 |
0 |
if ($config->{'backend'} or $config->{'schema'}) { } |
213
|
1 |
0 |
&blessed($config->{'backend'}) ? : |
|
1 |
51 |
$config->{'backend'} ? : |
231
|
0 |
52 |
if ($config->{'api_controller'}) |
247
|
4 |
0 |
unless ($auth_cb or exists $config->{'require_user'} or defined $config->{'route'}) |
254
|
2 |
93 |
$auth_cb ? : |
260
|
4 |
48 |
if ($config->{'openapi'} and keys %{$$config{'openapi'};}) { } |
285
|
74 |
216 |
if (my $view = $schema->{$schema_name}{'x-view'}) |
288
|
0 |
290 |
if $schema->{$schema_name}{'x-view'} |
289
|
134 |
156 |
if (my $list_cols = $schema->{$schema_name}{'x-list-columns'}) |
291
|
1 |
286 |
if (ref $col eq 'HASH') { } |
294
|
1 |
0 |
if (my($col) = grep({not exists $schema->{$schema_name}{'properties'}{$_};} @cols)) |
300
|
1 |
285 |
unless (exists $schema->{$schema_name}{'properties'}{$col}) |
342
|
1 |
5 |
if (@includes) |
350
|
1 |
5 |
if ($config) |
361
|
0 |
495 |
if $pathspec->{'x-schema'} |
366
|
493 |
517 |
if ($method eq 'get') { } |
|
344 |
173 |
elsif ($method =~ /^(put|post)$/u) { } |
370
|
0 |
493 |
unless $schema = $response_spec->{'schema'} |
373
|
0 |
344 |
unless $op_spec->{'parameters'} |
374
|
172 |
172 |
unless $pathspec->{'parameters'} |
376
|
0 |
344 |
if @body_params > 1 |
377
|
0 |
344 |
unless $schema = $body_params[0]{'schema'} |
382
|
419 |
591 |
unless my $this_ref = $schema->{'$ref'} || $schema->{'items'} && $schema->{'items'}{'$ref'} || $schema->{'properties'} && $schema->{'properties'}{'items'} && $schema->{'properties'}{'items'}{'$ref'} |
383
|
0 |
591 |
unless $this_ref =~ s[^#/definitions/][]u |
384
|
0 |
591 |
if $this_ref and $schema_name and $this_ref ne $schema_name |
388
|
76 |
419 |
unless ($schema_name) |
390
|
0 |
76 |
unless $schema_name |
402
|
1 |
494 |
unless $spec->{'definitions'}{$schema} |
412
|
1008 |
0 |
unless $pathspec->{'x-filter'} |
413
|
1008 |
0 |
unless $op_spec->{'x-filter'} |
415
|
0 |
1008 |
if @filters |
417
|
1008 |
0 |
unless $pathspec->{'x-filter-output'} |
418
|
1008 |
0 |
unless $op_spec->{'x-filter-output'} |
420
|
0 |
1008 |
if @filters_out |
431
|
418 |
591 |
unless $pathspec->{'parameters'} |
432
|
420 |
589 |
unless $op_spec->{'parameters'} |
437
|
493 |
516 |
if ($method eq 'get') { } |
|
171 |
345 |
elsif ($method eq 'post') { } |
|
172 |
173 |
elsif ($method eq 'put') { } |
|
172 |
1 |
elsif ($method eq 'delete') { } |
439
|
247 |
246 |
if ($id_field) { } |
459
|
0 |
172 |
unless $id_field |
465
|
0 |
172 |
unless $id_field |
514
|
0 |
234 |
if $json_schema->{'x-ignore'} |
516
|
8 |
226 |
ref $id_field eq 'ARRAY' ? : |
518
|
35 |
0 |
if (not $props and $json_schema->{'x-view'}) |
540
|
471 |
1169 |
ref $props{$_}{'type'} eq 'ARRAY' ? : |
541
|
1 |
1163 |
$type eq 'array' ? : |
|
93 |
1164 |
$type eq 'boolean' ? : |
|
383 |
1257 |
$type eq 'number' || $type eq 'integer' ? : |
607
|
8 |
156 |
@id_fields > 1 ? : |
|
70 |
164 |
$json_schema->{'x-view'} ? : |
645
|
70 |
164 |
$json_schema->{'x-view'} ? : |