Merge pull request #3156 from ferristseng/master

Fix result not defined error in javascript ApiClient
This commit is contained in:
wing328 2016-06-18 14:53:29 +08:00 committed by GitHub
commit fe06fe30e0
5 changed files with 21 additions and 21 deletions

View File

@ -489,7 +489,7 @@
} else {
for (var k in data) {
if (data.hasOwnProperty(k))
result[k] = exports.convertToType(data[k], itemType);
obj[k] = exports.convertToType(data[k], itemType);
}
}
};

View File

@ -6,7 +6,7 @@ This SDK is automatically generated by the [Swagger Codegen](https://github.com/
- API version: 1.0.0
- Package version: 1.0.0
- Build date: 2016-06-15T01:16:30.521+08:00
- Build date: 2016-06-17T15:45:49.945-04:00
- Build package: class io.swagger.codegen.languages.JavascriptClientCodegen
## Installation
@ -139,12 +139,6 @@ Class | Method | HTTP request | Description
## Documentation for Authorization
### api_key
- **Type**: API key
- **API key parameter name**: api_key
- **Location**: HTTP header
### petstore_auth
- **Type**: OAuth
@ -154,3 +148,9 @@ Class | Method | HTTP request | Description
- write:pets: modify pets in your account
- read:pets: read your pets
### api_key
- **Type**: API key
- **API key parameter name**: api_key
- **Location**: HTTP header

View File

@ -64,8 +64,8 @@
* @type {Array.<String>}
*/
this.authentications = {
'api_key': {type: 'apiKey', 'in': 'header', name: 'api_key'},
'petstore_auth': {type: 'oauth2'}
'petstore_auth': {type: 'oauth2'},
'api_key': {type: 'apiKey', 'in': 'header', name: 'api_key'}
};
/**
* The default HTTP headers to be included for all API calls.
@ -489,7 +489,7 @@
} else {
for (var k in data) {
if (data.hasOwnProperty(k))
result[k] = exports.convertToType(data[k], itemType);
obj[k] = exports.convertToType(data[k], itemType);
}
}
};

View File

@ -6,7 +6,7 @@ This SDK is automatically generated by the [Swagger Codegen](https://github.com/
- API version: 1.0.0
- Package version: 1.0.0
- Build date: 2016-06-15T01:15:37.147+08:00
- Build date: 2016-06-17T15:45:43.569-04:00
- Build package: class io.swagger.codegen.languages.JavascriptClientCodegen
## Installation
@ -142,12 +142,6 @@ Class | Method | HTTP request | Description
## Documentation for Authorization
### api_key
- **Type**: API key
- **API key parameter name**: api_key
- **Location**: HTTP header
### petstore_auth
- **Type**: OAuth
@ -157,3 +151,9 @@ Class | Method | HTTP request | Description
- write:pets: modify pets in your account
- read:pets: read your pets
### api_key
- **Type**: API key
- **API key parameter name**: api_key
- **Location**: HTTP header

View File

@ -64,8 +64,8 @@
* @type {Array.<String>}
*/
this.authentications = {
'api_key': {type: 'apiKey', 'in': 'header', name: 'api_key'},
'petstore_auth': {type: 'oauth2'}
'petstore_auth': {type: 'oauth2'},
'api_key': {type: 'apiKey', 'in': 'header', name: 'api_key'}
};
/**
* The default HTTP headers to be included for all API calls.
@ -501,7 +501,7 @@
} else {
for (var k in data) {
if (data.hasOwnProperty(k))
result[k] = exports.convertToType(data[k], itemType);
obj[k] = exports.convertToType(data[k], itemType);
}
}
};