update petstore sample

This commit is contained in:
Ferris Tseng
2016-06-17 15:46:36 -04:00
committed by Ferris Tseng
parent 3852736b40
commit c30c586f94
4 changed files with 20 additions and 20 deletions

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);
}
}
};