<#5033 [Core feature] Support both pydantic 1.x an...
# flytekit
c
#5033 [Core feature] Support both pydantic 1.x and 2.x. TypeEngine BaseModelTransformer Issue created by Future-Outlier Motivation: Why do you think this is important? Now, we can only support 1.x version in pydantic. However, some users might want to use 2.x version. Goal: What should the final outcome look like, ideally? We should support both version with 2 type transformer. Maybe we need to implement some kind of routing mechanism to recognize which transformer we should use. Describe alternatives you've considered When using pydantic version >= 2, only use
pydantic.v1
BaseModel. Propose: Link/Inline OR Additional context • More details about pydantic: https://docs.pydantic.dev/latest/migration/#defining-custom-types • Related PR: flyteorg/flytekit#2217 Are you sure this issue hasn't been raised already? • Yes Have you read the Code of Conduct? • Yes flyteorg/flyte