mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-06 15:40:54 +00:00
Merge pull request #335 from wing328/master
update deserialize to handle both array(primitive) and Array(model)
This commit is contained in:
commit
586420b919
@ -194,7 +194,7 @@ class APIClient {
|
||||
{
|
||||
if (null === $data) {
|
||||
$deserialized = null;
|
||||
} else if (substr($class, 0, 6) == 'array[') {
|
||||
} else if (strcasecmp(substr($class, 0, 6),'array[') == 0) {
|
||||
$subClass = substr($class, 6, -1);
|
||||
$values = array();
|
||||
foreach ($data as $value) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user