Skip to content

Commit

Permalink
Manual fix for #2199
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Räni committed Apr 24, 2019
1 parent fffeefa commit 036c714
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/ObjectSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ public static function sanitizeForSerialization($data, $type = null, $format = n
$imploded = implode("', '", $openAPIType::getAllowableEnumValues());
throw new \InvalidArgumentException("Invalid value for enum '$openAPIType', must be one of: '$imploded'");
}
if ($value !== null) {
$values[$data::attributeMap()[$property]] = self::sanitizeForSerialization($value, $openAPIType, $formats[$property]);
}

$values[$data::attributeMap()[$property]] = self::sanitizeForSerialization($value, $openAPIType, $formats[$property]);

}
} else {
foreach($data as $property => $value) {
Expand Down

0 comments on commit 036c714

Please sign in to comment.