Bug 30194: (follow-up) Fix xt/api.t
The query object can have an arbitrary structure, and thus it doesn't make sense to check for the additionalProperties presence. also, it is not allowed by OpenAPIv2 :-D Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
7b2460db29
commit
8e9fab60ca
3
xt/api.t
3
xt/api.t
|
|
@ -39,7 +39,8 @@ foreach my $route ( keys %{$paths} ) {
|
|||
&& $parameter->{schema}->{type} eq 'object' ) {
|
||||
|
||||
# it is an object type definition
|
||||
if ( not exists $parameter->{schema}->{additionalProperties} ) {
|
||||
if ( $parameter->{name} ne 'query' # our query parameter is under-specified
|
||||
and not exists $parameter->{schema}->{additionalProperties} ) {
|
||||
push @missing_additionalProperties,
|
||||
{ type => 'parameter',
|
||||
route => $route,
|
||||
|
|
|
|||
Loading…
Reference in New Issue