forked from loafle/openapi-generator-original
Merge pull request #3156 from ferristseng/master
Fix result not defined error in javascript ApiClient
This commit is contained in:
commit
fe06fe30e0
@ -489,7 +489,7 @@
|
|||||||
} else {
|
} else {
|
||||||
for (var k in data) {
|
for (var k in data) {
|
||||||
if (data.hasOwnProperty(k))
|
if (data.hasOwnProperty(k))
|
||||||
result[k] = exports.convertToType(data[k], itemType);
|
obj[k] = exports.convertToType(data[k], itemType);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -6,7 +6,7 @@ This SDK is automatically generated by the [Swagger Codegen](https://github.com/
|
|||||||
|
|
||||||
- API version: 1.0.0
|
- API version: 1.0.0
|
||||||
- Package 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
|
- Build package: class io.swagger.codegen.languages.JavascriptClientCodegen
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
@ -139,12 +139,6 @@ Class | Method | HTTP request | Description
|
|||||||
## Documentation for Authorization
|
## Documentation for Authorization
|
||||||
|
|
||||||
|
|
||||||
### api_key
|
|
||||||
|
|
||||||
- **Type**: API key
|
|
||||||
- **API key parameter name**: api_key
|
|
||||||
- **Location**: HTTP header
|
|
||||||
|
|
||||||
### petstore_auth
|
### petstore_auth
|
||||||
|
|
||||||
- **Type**: OAuth
|
- **Type**: OAuth
|
||||||
@ -154,3 +148,9 @@ Class | Method | HTTP request | Description
|
|||||||
- write:pets: modify pets in your account
|
- write:pets: modify pets in your account
|
||||||
- read:pets: read your pets
|
- read:pets: read your pets
|
||||||
|
|
||||||
|
### api_key
|
||||||
|
|
||||||
|
- **Type**: API key
|
||||||
|
- **API key parameter name**: api_key
|
||||||
|
- **Location**: HTTP header
|
||||||
|
|
||||||
|
@ -64,8 +64,8 @@
|
|||||||
* @type {Array.<String>}
|
* @type {Array.<String>}
|
||||||
*/
|
*/
|
||||||
this.authentications = {
|
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.
|
* The default HTTP headers to be included for all API calls.
|
||||||
@ -489,7 +489,7 @@
|
|||||||
} else {
|
} else {
|
||||||
for (var k in data) {
|
for (var k in data) {
|
||||||
if (data.hasOwnProperty(k))
|
if (data.hasOwnProperty(k))
|
||||||
result[k] = exports.convertToType(data[k], itemType);
|
obj[k] = exports.convertToType(data[k], itemType);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -6,7 +6,7 @@ This SDK is automatically generated by the [Swagger Codegen](https://github.com/
|
|||||||
|
|
||||||
- API version: 1.0.0
|
- API version: 1.0.0
|
||||||
- Package 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
|
- Build package: class io.swagger.codegen.languages.JavascriptClientCodegen
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
@ -142,12 +142,6 @@ Class | Method | HTTP request | Description
|
|||||||
## Documentation for Authorization
|
## Documentation for Authorization
|
||||||
|
|
||||||
|
|
||||||
### api_key
|
|
||||||
|
|
||||||
- **Type**: API key
|
|
||||||
- **API key parameter name**: api_key
|
|
||||||
- **Location**: HTTP header
|
|
||||||
|
|
||||||
### petstore_auth
|
### petstore_auth
|
||||||
|
|
||||||
- **Type**: OAuth
|
- **Type**: OAuth
|
||||||
@ -157,3 +151,9 @@ Class | Method | HTTP request | Description
|
|||||||
- write:pets: modify pets in your account
|
- write:pets: modify pets in your account
|
||||||
- read:pets: read your pets
|
- read:pets: read your pets
|
||||||
|
|
||||||
|
### api_key
|
||||||
|
|
||||||
|
- **Type**: API key
|
||||||
|
- **API key parameter name**: api_key
|
||||||
|
- **Location**: HTTP header
|
||||||
|
|
||||||
|
@ -64,8 +64,8 @@
|
|||||||
* @type {Array.<String>}
|
* @type {Array.<String>}
|
||||||
*/
|
*/
|
||||||
this.authentications = {
|
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.
|
* The default HTTP headers to be included for all API calls.
|
||||||
@ -501,7 +501,7 @@
|
|||||||
} else {
|
} else {
|
||||||
for (var k in data) {
|
for (var k in data) {
|
||||||
if (data.hasOwnProperty(k))
|
if (data.hasOwnProperty(k))
|
||||||
result[k] = exports.convertToType(data[k], itemType);
|
obj[k] = exports.convertToType(data[k], itemType);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user