update JS petstore client

This commit is contained in:
wing328 2017-01-25 16:08:22 +08:00
parent d239a4c06e
commit 3be04e8a18
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@
exports.constructFromObject = function(data, obj) {
if (data) {
obj = obj || new exports();
ApiClient.constructFromObject(data, obj, Animal);
ApiClient.constructFromObject(data, obj, 'Animal');
}
return obj;

View File

@ -61,7 +61,7 @@
exports.constructFromObject = function(data, obj) {
if (data) {
obj = obj || new exports();
ApiClient.constructFromObject(data, obj, Animal);
ApiClient.constructFromObject(data, obj, 'Animal');
}
return obj;