First of all, many thanks for good library.
Question is - is there a way to create mixed model like
class MyModel(BaseModel):
a: int
b: str
class XmlModel(BaseXmlModel):
b: MyModel = Field()
a: str = attr()
where XmlModel.b is ignored when deserializing\serializing to xml?
Clarification - to be used with model_dump to dict, but ignored for xml.
First of all, many thanks for good library.
Question is - is there a way to create mixed model like
where XmlModel.b is ignored when deserializing\serializing to xml?
Clarification - to be used with model_dump to dict, but ignored for xml.