mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-04 14:40:53 +00:00
update JS petstore client
This commit is contained in:
parent
d239a4c06e
commit
3be04e8a18
@ -61,7 +61,7 @@
|
|||||||
exports.constructFromObject = function(data, obj) {
|
exports.constructFromObject = function(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new exports();
|
||||||
ApiClient.constructFromObject(data, obj, Animal);
|
ApiClient.constructFromObject(data, obj, 'Animal');
|
||||||
|
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
|
@ -61,7 +61,7 @@
|
|||||||
exports.constructFromObject = function(data, obj) {
|
exports.constructFromObject = function(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new exports();
|
||||||
ApiClient.constructFromObject(data, obj, Animal);
|
ApiClient.constructFromObject(data, obj, 'Animal');
|
||||||
|
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user