-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Support (str, Enum)
like StrEnum
#676
Comments
Per https://github.com/temporalio/sdk-python?tab=readme-ov-file#data-conversion and https://docs.temporal.io/develop/python/converters-and-encryption#payload-conversion, only |
Hello, @cretz, thank you for the quick follow up. I can extend, but it is seems, that I need to copy-paste the whole |
As proposal:
|
It is because there is no clear serialization of plain |
(str, Enum)
like StrEnum
Similar enhancement for Thanks. |
What are you really trying to do?
I'm trying to use enum class to pass it to activity as an input.
Describe the bug
Activity deserializes bytes to list of chars instead of given Enum
Minimal Reproduction
Output:
Environment/Versions
SDK version is 1.6.0
No
Additional context
JSONPlainPayloadConverter deserializes IntEnum, StrEnum correctly, but it is more reliable to convert payload to any Enum
The text was updated successfully, but these errors were encountered: