Dmitry Pershin
Dmitry Pershin
@DLogunoff Hi right now CDATA is not supported by the library since it is not supported by [xml.etree](https://docs.python.org/3.9/library/xml.etree.elementtree.html) library. I am going to add it for `lxml` backend only in...
@DLogunoff as a temporary solution you could use custom serializer: ```python >>> from pydantic_xml import BaseXmlModel, xml_field_serializer >>> from pydantic_xml.element import XmlElementWriter >>> >>> from lxml.etree import CDATA >>> >>>...
@JoepdeJong Hi, right now there is no way to use an element text as a union discriminator.
In your case as I can see non-discriminated unions must behave the same as discriminated ones ```python class Cat(BaseXmlModel, tag="Cat"): type: Literal["cat"] = element(name="type") # discriminator name: str = element()...
@lionpeloux Hi, Computed fields are ignored during deserialization for a reason. Your fix disabled this logic for primitive types but the same behavior is expected from other types ([dict](https://github.com/dapper91/pydantic-xml/blob/master/pydantic_xml/serializers/factories/mapping.py#L57), [collection](https://github.com/dapper91/pydantic-xml/blob/master/pydantic_xml/serializers/factories/heterogeneous.py#L62),...
@JordanBarnartt thanks for the feedback added this feature in 2.15.0
@JordanBarnartt Hi, the library is supposed to be xml parser agnostic, so that it must be able to use different xml parser backends, not only lxml. Passing `parser_options` explicitly could...