cuddly-jelly-27016
05/15/2025, 12:09 AMclass 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:
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/flytecuddly-jelly-27016
05/15/2025, 12:09 AM