Skip to content

Introduce less safe PydanticAdapter #252

@strawgate

Description

@strawgate

Right now we have a dataclassadapter and a pydanticadapter but are intended for data classes or base models.

This ensures we can use the class.

For certain use-cases like #250 we may want a less safe option which takes any python type and uses the magic of the Pedantic TypeAdapter to solve our problems for us. (perhaps with special handling for lists).

Let's come up with a plan to do this while keeping the dataclassadapter and pydanticadapter safe to use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions