Fix broken map

This commit is contained in:
akihito.nakano
2018-03-29 20:46:22 +09:00
parent dd3d798f02
commit 75e354ed71
11 changed files with 35 additions and 35 deletions

View File

@@ -1801,7 +1801,7 @@ class FakeApi
*
* test inline additionalProperties
*
* @param map $UNKNOWN_PARAM_NAME request body (required)
* @param map[string,string] $UNKNOWN_PARAM_NAME request body (required)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -1817,7 +1817,7 @@ class FakeApi
*
* test inline additionalProperties
*
* @param map $UNKNOWN_PARAM_NAME request body (required)
* @param map[string,string] $UNKNOWN_PARAM_NAME request body (required)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -1870,7 +1870,7 @@ class FakeApi
*
* test inline additionalProperties
*
* @param map $UNKNOWN_PARAM_NAME request body (required)
* @param map[string,string] $UNKNOWN_PARAM_NAME request body (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@@ -1890,7 +1890,7 @@ class FakeApi
*
* test inline additionalProperties
*
* @param map $UNKNOWN_PARAM_NAME request body (required)
* @param map[string,string] $UNKNOWN_PARAM_NAME request body (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@@ -1926,7 +1926,7 @@ class FakeApi
/**
* Create request for operation 'testInlineAdditionalProperties'
*
* @param map $UNKNOWN_PARAM_NAME request body (required)
* @param map[string,string] $UNKNOWN_PARAM_NAME request body (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request

View File

@@ -320,7 +320,7 @@ class StoreApi
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return map
* @return map[string,int]
*/
public function getInventory()
{
@@ -336,11 +336,11 @@ class StoreApi
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of map, HTTP status code, HTTP response headers (array of strings)
* @return array of map[string,int], HTTP status code, HTTP response headers (array of strings)
*/
public function getInventoryWithHttpInfo()
{
$returnType = 'map';
$returnType = 'map[string,int]';
$request = $this->getInventoryRequest();
try {
@@ -392,7 +392,7 @@ class StoreApi
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'map',
'map[string,int]',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -432,7 +432,7 @@ class StoreApi
*/
public function getInventoryAsyncWithHttpInfo()
{
$returnType = 'map';
$returnType = 'map[string,int]';
$request = $this->getInventoryRequest();
return $this->client

View File

@@ -57,8 +57,8 @@ class AdditionalPropertiesClass implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $swaggerTypes = [
'map_property' => 'map',
'map_of_map_property' => 'map'
'map_property' => 'map[string,string]',
'map_of_map_property' => 'map[string,map[string,string]]'
];
/**
@@ -214,7 +214,7 @@ class AdditionalPropertiesClass implements ModelInterface, ArrayAccess
/**
* Gets map_property
*
* @return map
* @return map[string,string]
*/
public function getMapProperty()
{
@@ -224,7 +224,7 @@ class AdditionalPropertiesClass implements ModelInterface, ArrayAccess
/**
* Sets map_property
*
* @param map $map_property map_property
* @param map[string,string] $map_property map_property
*
* @return $this
*/
@@ -238,7 +238,7 @@ class AdditionalPropertiesClass implements ModelInterface, ArrayAccess
/**
* Gets map_of_map_property
*
* @return map
* @return map[string,map[string,string]]
*/
public function getMapOfMapProperty()
{
@@ -248,7 +248,7 @@ class AdditionalPropertiesClass implements ModelInterface, ArrayAccess
/**
* Sets map_of_map_property
*
* @param map $map_of_map_property map_of_map_property
* @param map[string,map[string,string]] $map_of_map_property map_of_map_property
*
* @return $this
*/

View File

@@ -57,8 +57,8 @@ class MapTest implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $swaggerTypes = [
'map_map_of_string' => 'map',
'map_of_enum_string' => 'map'
'map_map_of_string' => 'map[string,map[string,string]]',
'map_of_enum_string' => 'map[string,string]'
];
/**
@@ -229,7 +229,7 @@ class MapTest implements ModelInterface, ArrayAccess
/**
* Gets map_map_of_string
*
* @return map
* @return map[string,map[string,string]]
*/
public function getMapMapOfString()
{
@@ -239,7 +239,7 @@ class MapTest implements ModelInterface, ArrayAccess
/**
* Sets map_map_of_string
*
* @param map $map_map_of_string map_map_of_string
* @param map[string,map[string,string]] $map_map_of_string map_map_of_string
*
* @return $this
*/
@@ -253,7 +253,7 @@ class MapTest implements ModelInterface, ArrayAccess
/**
* Gets map_of_enum_string
*
* @return map
* @return map[string,string]
*/
public function getMapOfEnumString()
{
@@ -263,7 +263,7 @@ class MapTest implements ModelInterface, ArrayAccess
/**
* Sets map_of_enum_string
*
* @param map $map_of_enum_string map_of_enum_string
* @param map[string,string] $map_of_enum_string map_of_enum_string
*
* @return $this
*/

View File

@@ -59,7 +59,7 @@ class MixedPropertiesAndAdditionalPropertiesClass implements ModelInterface, Arr
protected static $swaggerTypes = [
'uuid' => 'string',
'date_time' => '\DateTime',
'map' => 'map'
'map' => 'map[string,\Swagger\Client\Model\Animal]'
];
/**
@@ -268,7 +268,7 @@ class MixedPropertiesAndAdditionalPropertiesClass implements ModelInterface, Arr
/**
* Gets map
*
* @return map
* @return map[string,\Swagger\Client\Model\Animal]
*/
public function getMap()
{
@@ -278,7 +278,7 @@ class MixedPropertiesAndAdditionalPropertiesClass implements ModelInterface, Arr
/**
* Sets map
*
* @param map $map map
* @param map[string,\Swagger\Client\Model\Animal] $map map
*
* @return $this
*/