Dmitry Pershin

Results 48 comments of Dmitry Pershin

I think you branched off from master. Please rebase to dev because you PR brings commits from master branch.

> (This is @ajoino, accidentally commented using my work account again...) > ... > Something poetry-related given the logs but I don't use poetry for my own projects so it's...

@saharwenrix Hi, MRs to version 1 are no longer accepted, only critical bug fixes. In version 2 ``xs:list`` can be handled using custom xml serializers: https://pydantic-xml.readthedocs.io/en/latest/pages/misc.html#custom-xml-serialization

@RiccardoNizzolo Hi, That is breaking change in `pydantic` itself, not `pydantic-xml`. Starting from pydantic 2.0 it is not possible to get the field type from `__fields__` map anymore. If you...

@ajoino Hi, Due to xml complexity the model xml serializer/deserializer is built during model definition, not model instantiation that is why you get the error: `model GenericModel is partially initialized`....

@ajoino Hi, I am not sure defining `any_` phantom field is a very intuitive approach. Furthermore user can define `any_` field in a model by himself which could lead to...

@spacemanspiff2007 Hi, Right now there is not way to skip `None`'s only. I will try to add this feature in future releases.

Implemented this feature in version 2.12.0.

@eltoder Hi, Tag name is not passed to the serializer directly, but you are able to extract it from the model field metadata: ```python import pydantic_xml as pxml class Model(pxml.BaseXmlModel):...

You may check the field_info type before: ```python @pxml.xml_field_serializer("x_ids", "y_ids") def _serialize_ids(self, elem, value, field): if isinstance(field_info := self.model_fields[field], pxml.fields.XmlEntityInfo): tag_name = self.model_fields[field].path else: ... ```