-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Open
Labels
Description
Description
Right now, normalized boolean values are turned into '0' and '1' in the XMLEncoder
symfony/src/Symfony/Component/Serializer/Encoder/XmlEncoder.php
Lines 469 to 470 in 3711a6a
} elseif (\is_bool($val)) { | |
return $this->appendText($node, (int) $val); |
but while they are valid for xsd:boolean
, I might want to have them rendered differently like 'true' and 'false'
if we want to have this be changed on Attribute Level, then we might need to look at this, and make Scalar values pass through normalize
symfony/src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php
Lines 212 to 214 in 3711a6a
if (null === $attributeValue || \is_scalar($attributeValue)) { | |
$data = $this->updateData($data, $attribute, $attributeValue, $class, $format, $attributeContext, $attributesMetadata, $classMetadata); | |
continue; |
This is also related to #58056
Example
No response