Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
# 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);