forked from loafle/openapi-generator-original
fix empty object serialization issue
This commit is contained in:
@@ -71,7 +71,7 @@ class ObjectSerializer
|
||||
$values[$data::$attributeMap[$property]] = self::sanitizeForSerialization($data->$getter());
|
||||
}
|
||||
}
|
||||
$sanitized = $values;
|
||||
$sanitized = (object)$values;
|
||||
} else {
|
||||
$sanitized = (string)$data;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user