8000 Is there a way to deserialize discriminated union? · Issue #238 · dapper91/pydantic-xml · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Is there a way to deserialize discriminated union? #238
Open
@hellozyemlya

Description

@hellozyemlya

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0