Bug 17032: Remove warning "keys on reference is experimental"
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 5 Aug 2016 10:21:34 +0000 (11:21 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 9 Sep 2016 12:57:52 +0000 (12:57 +0000)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
t/db_dependent/api/v1/swagger/definitions.t

index fa53146..c7977e9 100644 (file)
@@ -41,7 +41,7 @@ my $api_spec = $swagger->api_spec->data;
 #           columns to properties of the object defined in Swagger.
 #             --> If columns match properties, definition is ok.
 #             --> If columns do not match properties, definition is not ok.
-my @definition_names = keys $api_spec->{definitions};
+my @definition_names = keys %{ $api_spec->{definitions} };
 
 subtest 'api/v1/definitions/*.json up-to-date with corresponding Koha-object' => sub {
     plan tests => scalar(@definition_names);