Skip to content

Upgrade to Pydantic 2 or make Pydantic support optional? #23

Open
@eykd

Description

@eykd

I'm working a Starlette project that uses Pydantic v2. I'd be interested in trying out cacheme, but the conflicting Pydantic version requirements make it impossible. Two obvious options present themselves:

  1. Upgrade the Pydantic support to v2 (migration guide), or
  2. Make pydantic support optional (perhaps allow customization of object_encoder/object_decoder on the Serialization classes, with the default being an identity function for accepting/returning primitive types.

Thank you for considering this.

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