<#3417 Enum values are serialized by "name" and no...
# flyte-github
c
#3417 Enum values are serialized by "name" and not "value", creating errors on deserialization when selected via the dropdown Issue created by elibixby if I specify a dataclass as:
Copy code
class MyEnum(enum.Enum):
   ONE = 'one'
   TWO = 'two'

class MyStruct:
    option: MyEnum
and use it in a workflow, it will nicely generate a dropdown bar for the
option
field in the UI, with the options
ONE
and
TWO
. If I actually run a workflow that contains a task that recieves
MyStruct
the task will fail with:
Copy code
ONE is not a valid MyEnum, please select one of ['one', 'two']
This suggests that the UI is erroneously using the "name" field for serialization rather than the value. flyteorg/flyte