forked from loafle/openapi-generator-original
* [PHP-Symfony] fix #15950: Add float to deserialize * Add test sample * Add double --------- Co-authored-by: DaxServer <daxserver@icloud.com>
This commit is contained in:
@@ -75,6 +75,13 @@ class JmsSerializer implements SerializerInterface
|
||||
return $data + 0;
|
||||
}
|
||||
|
||||
break;
|
||||
case 'double':
|
||||
case 'float':
|
||||
if (is_float($data) || is_numeric($data)) {
|
||||
return (float) $data;
|
||||
}
|
||||
|
||||
break;
|
||||
case 'string':
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user