pydantic-xml
pydantic-xml copied to clipboard
Is there a way to deserialize discriminated union?
I have model A and model B, discriminated by type field. In pydantic I can use TypeAdapter(A | B).validate_json() to parse A or B. But how I can do the same with pydantic-xml?
@hellozyemlya Hi
No, there is no such functionality in pydantic-xml.