Skip to content

Remove fallback to standard union serialization for tagged unions #1455

Open
@sydney-runkle

Description

@sydney-runkle

After a few minor releases (maybe we can do this in pydantic v2.12ish), let's remove the tagged union fallback to union serialization and instead just fallback to inference.

We'll need to improve serialization warnings and pointers to discriminator design docs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions