diff --git a/Changes b/Changes index 577cfd5..efa06b7 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,8 @@ Revision history for perl distribution Mojolicious-Plugin-OpenAPI +5.06 2022-03-25T10:00:49+0900 + - Fix incompatability with OpenAPIv2 spec regarding default "collectionFormat" + 5.05 2022-03-25T10:00:49+0900 - Fix collectionFormat in header diff --git a/cpanfile b/cpanfile index c192abe..6eb691a 100644 --- a/cpanfile +++ b/cpanfile @@ -1,6 +1,6 @@ # You can install this project with curl -L http://cpanmin.us | perl - https://github.com/jhthorsen/mojolicious-plugin-openapi/archive/master.tar.gz requires "Mojolicious" => "9.00"; -requires "JSON::Validator" => "5.08"; +requires "JSON::Validator" => "5.09"; recommends "Text::Markdown" => "1.0.31"; diff --git a/t/v2-headers.t b/t/v2-headers.t index c8521ae..ec5f1ed 100644 --- a/t/v2-headers.t +++ b/t/v2-headers.t @@ -25,8 +25,8 @@ $t->get_ok('/api/headers' => {'x-number' => 42.3, 'x-string' => '123'})->status_ ->json_is('/x-number', 42.3)->header_is('what-ever', '123'); $what_ever = [qw(1 2 3)]; -$t->get_ok('/api/headers' => {'x-array' => [42, 24]})->status_is(200) - ->json_is('/x-array', [42, 24])->header_is('what-ever', '1, 2, 3'); +$t->get_ok('/api/headers' => {'x-array' => '42,24'})->status_is(200)->json_is('/x-array', [42, 24]) + ->header_is('what-ever', '1, 2, 3'); for my $bool (qw(true false 1 0)) { my $s = $bool =~ /true|1/ ? 'true' : 'false';