NowanIlfideme / pydantic-yaml

YAML support for Pydantic models

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot serialize Pydantic "v1" models for V2

NowanIlfideme opened this issue · comments

Currently, in Pydantic V2, from pydantic.v1 import BaseModel gives TypeError("We can currently only write pydantic.BaseModel, but recieved: BaseModel") which is a bit ridiculous, since we support v1 and v2 anyways.