Lines 152-161
shouldn't be called twice in it.
Link Here
|
152 |
|
152 |
|
153 |
my $json = JSON->new; |
153 |
my $json = JSON->new; |
154 |
|
154 |
|
155 |
# q is defined as multi => JSON::Validator generates an array |
155 |
if ( ref($reserved_params->{q}) eq 'ARRAY' ) { |
156 |
foreach my $q ( @{ $reserved_params->{q} } ) { |
156 |
# q is defined as multi => JSON::Validator generates an array |
157 |
push @query_params_array, $json->decode($q) |
157 |
foreach my $q ( @{ $reserved_params->{q} } ) { |
158 |
if $q; # skip if exists but is empty |
158 |
push @query_params_array, $json->decode($q) |
|
|
159 |
if $q; # skip if exists but is empty |
160 |
} |
161 |
} |
162 |
else { |
163 |
# objects.search called outside OpenAPI context |
164 |
# might be a hashref |
165 |
push @query_params_array, $json->decode($reserved_params->{q}) |
166 |
if $reserved_params->{q}; |
159 |
} |
167 |
} |
160 |
|
168 |
|
161 |
push @query_params_array, |
169 |
push @query_params_array, |
162 |
- |
|
|