(🐞) Enum
with multiple values (tuple
) can't be round tripped through json
#10629
Labels
Enum
with multiple values (tuple
) can't be round tripped through json
#10629
Initial Checks
Description
Enum
s support functionality where a tuple ("multiple values") is assigned to the memberhere, we see that pydantic does not support serialising and parsing of this type of
Enum
valueWorkaround
add a core schema to the class:
Example Code
Python, Pydantic & OS Version
The text was updated successfully, but these errors were encountered: