mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-10 23:12:42 +00:00
Fixing nested model deserialization - Issue #635
This commit is contained in:
@@ -289,8 +289,8 @@ class APIClient {
|
||||
$class = "{{invokerPackage}}\\models\\".$class;
|
||||
$instance = new $class();
|
||||
foreach ($instance::$swaggerTypes as $property => $type) {
|
||||
if (isset($data->$property)) {
|
||||
$original_property_name = $instance::$attributeMap[$property];
|
||||
$original_property_name = $instance::$attributeMap[$property];
|
||||
if (isset($original_property_name)) {
|
||||
$instance->$property = self::deserialize($data->$original_property_name, $type);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user