forked from loafle/openapi-generator-original
update petstore sample
This commit is contained in:
committed by
Ferris Tseng
parent
3852736b40
commit
c30c586f94
@@ -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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user