Closed guacs closed 8 months ago
Closing that as there's no easy way to do this due to the way the pydantic v1 API. Also, it's not really worth the effort to do this now since we will be dropping support for pydantic v1 in the next major release after pydantic also drops support for it.
Currently, the parsing of pydantic v1 models to get the list of
FieldMeta
is based on its own custom logic and does not use theFieldMeta.from_type
as done in the other factories (including pydantic v2). Ideally, this should be changed so that it also usesFieldMeta.from_type
which will unify the way theFieldMeta
list is parsed from all the different model types.Hopefully, this will fix #430 and unblock #412.