Lines 41-47
my $api_spec = $swagger->api_spec->data;
Link Here
|
41 |
# columns to properties of the object defined in Swagger. |
41 |
# columns to properties of the object defined in Swagger. |
42 |
# --> If columns match properties, definition is ok. |
42 |
# --> If columns match properties, definition is ok. |
43 |
# --> If columns do not match properties, definition is not ok. |
43 |
# --> If columns do not match properties, definition is not ok. |
44 |
my @definition_names = keys $api_spec->{definitions}; |
44 |
my @definition_names = keys %{ $api_spec->{definitions} }; |
45 |
|
45 |
|
46 |
subtest 'api/v1/definitions/*.json up-to-date with corresponding Koha-object' => sub { |
46 |
subtest 'api/v1/definitions/*.json up-to-date with corresponding Koha-object' => sub { |
47 |
plan tests => scalar(@definition_names); |
47 |
plan tests => scalar(@definition_names); |
48 |
- |
|
|