#1823 [Core][flytekit] TypeTransformer support for Pydantic Models
Issue created by kumare3Motivation: Why do you think this is important?
Currently Flytekit supports dataclasses as supported user defined types. We should also support Pydantic, as it provides similar benefits as Dataclasses_json to extract the schema and serialize to JSON with a nice extensible format.
Goal: What should the final outcome look like, ideally?
Copy code
from typing import List
from pydantic import BaseModel
class Foo(BaseModel):
count: int
size: float = None
Support as a valid transform
Describe alternatives you've considered
dataclasses are already supported, but they allow limited extensibility to schema extraction as they use marshmallow underneath
Propose: Link/Inline OR Additional contextNo responseAre you sure this issue hasn't been raised already?
âď¸ Yes
Have you read the Code of Conduct?
âď¸ Yes
flyteorg/flyte