mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-07 02:55:19 +00:00
account for possibly empty / null list-type attributes
This commit is contained in:
parent
bbb7e7138c
commit
153de3077e
@ -148,6 +148,10 @@ class APIClient {
|
||||
*/
|
||||
public static function deserialize($object, $class) {
|
||||
|
||||
if (gettype($object) == "NULL") {
|
||||
return $object;
|
||||
}
|
||||
|
||||
if (substr($class, 0, 6) == 'array[') {
|
||||
$sub_class = substr($class, 6, -1);
|
||||
$sub_objects = array();
|
||||
|
Loading…
Reference in New Issue
Block a user