Skip to content

Commit

Permalink
Add test case which reproduces swagger-api#5338 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ackintosh committed Oct 15, 2017
1 parent e6d0a69 commit 0256648
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,16 @@ public function testHeaderParamCollection()
$this->assertEquals(['string1,string2'], $headers['enum_header_string_array']);
}

public function testInlineAdditionalProperties()
{
$param = new \stdClass();
$param->foo = 'bar';
$this->fakeApi->testInlineAdditionalProperties($param);

$request = $this->fakeHttpClient->getLastRequest();
$this->assertSame('{"foo":"bar"}', $request->getBody()->getContents());
}

// missing example for collection path param in config
// public function testPathParamCollection()
// {
Expand Down

0 comments on commit 0256648

Please sign in to comment.