forked from loafle/openapi-generator-original
[php-symfony] Allow non mandatory array value (#11618)
Co-authored-by: David CLEMENT <dclement@cfdp.fr>
This commit is contained in:
@@ -95,6 +95,11 @@ class JmsSerializer implements SerializerInterface
|
|||||||
|
|
||||||
private function deserializeArrayString($format, $type, $data)
|
private function deserializeArrayString($format, $type, $data)
|
||||||
{
|
{
|
||||||
|
if($data === null)
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
// Parse the string using the correct separator
|
// Parse the string using the correct separator
|
||||||
switch ($format) {
|
switch ($format) {
|
||||||
case 'csv':
|
case 'csv':
|
||||||
|
|||||||
@@ -95,6 +95,11 @@ class JmsSerializer implements SerializerInterface
|
|||||||
|
|
||||||
private function deserializeArrayString($format, $type, $data)
|
private function deserializeArrayString($format, $type, $data)
|
||||||
{
|
{
|
||||||
|
if($data === null)
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
// Parse the string using the correct separator
|
// Parse the string using the correct separator
|
||||||
switch ($format) {
|
switch ($format) {
|
||||||
case 'csv':
|
case 'csv':
|
||||||
|
|||||||
Reference in New Issue
Block a user