From 0a3cdbe594dcd9654ca53355b4e2b8eea4bf711d Mon Sep 17 00:00:00 2001 From: Future-Outlier Date: Tue, 19 Nov 2024 10:01:28 +0800 Subject: [PATCH] support Signed-off-by: Future-Outlier --- docs/user_guide/data_types_and_io/pydantic.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/user_guide/data_types_and_io/pydantic.md b/docs/user_guide/data_types_and_io/pydantic.md index edd60e860d..c126c6d78e 100644 --- a/docs/user_guide/data_types_and_io/pydantic.md +++ b/docs/user_guide/data_types_and_io/pydantic.md @@ -11,8 +11,11 @@ Note: You can put Dataclass and FlyteTypes (FlyteFile, FlyteDirectory, FlyteSchema, and StructuredDataset) in a pydantic BaseModel. :::{important} -Pydantic BaseModle V2 only works when you are using flytekit version >= v1.14.0. +Pydantic BaseModel V2 only works when you are using flytekit version >= v1.14.0. +::: -If you're using Flytekit version >= v1.14.0 and you want to produce protobuf struct literal for pydantic basemodels, +:::{important} +If you're using Flytekit version >= v1.14.0 and you want to produce protobuf struct literal for pydantic basemodels, you can set environment variable `FLYTE_USE_OLD_DC_FORMAT` to `true`. ::: +