Skip to content

Commit

Permalink
Fix incompatability with OpenAPIv2 spec regarding default "collection…
Browse files Browse the repository at this point in the history
…Format"
  • Loading branch information
jhthorsen committed Aug 17, 2022
1 parent 4ca776a commit c972fdd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions 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

Expand Down
2 changes: 1 addition & 1 deletion 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";

Expand Down
4 changes: 2 additions & 2 deletions t/v2-headers.t
Expand Up @@ -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';
Expand Down

0 comments on commit c972fdd

Please sign in to comment.