Skip to content

Commit

Permalink
Update docs/user_guide/data_types_and_io/pydantic_basemodel.md
Browse files Browse the repository at this point in the history
Co-authored-by: David Espejo <[email protected]>
Signed-off-by: Han-Ru Chen (Future-Outlier) <[email protected]>
  • Loading branch information
Future-Outlier and davidmirror-ops authored Nov 21, 2024
1 parent f5b4f11 commit 52511c3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion docs/user_guide/data_types_and_io/pydantic_basemodel.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ overcoming a major limitation of serialization into a JSON string within a Proto

to store `int` types, Protobuf's `struct` converts them to `float`, forcing users to write boilerplate code to work around this issue.

By default, `flytekit >= 1.14` will produce `msgpack` bytes literals when serializing dataclasses, preserving the types defined in your `BaseModel` class.

:::{important}
If you're serializing dataclasses using `flytekit` version >= v1.14.0 and you want to produce Protobuf `struct literal` instead, you can set environment variable `FLYTE_USE_OLD_DC_FORMAT` to `true`.
Expand Down

0 comments on commit 52511c3

Please sign in to comment.