Skip to content

Conversation

@igalshilman
Copy link
Contributor

This commit try to deduce the type that is provided to the ctx.run(), in the case where a serde parameter is not passed. If type hints are there we will deduce the correct serializer from the type hints. If the type hints are not there, we will consult the type_hint parameter and try to deduce a serializer from there. If nothing worked, we will default to the DefaultSerde()

This commit try to deduce the type that is provided to the
ctx.run(), in the case where a `serde` parameter is not passed.
If type hints are there we will deduce the correct serializer from the type hints.
If the type hints are not there, we will consult the `type_hint`
parameter and try to deduce a serializer from there. If nothing worked,
we will default to the DefaultSerde()
@igalshilman igalshilman force-pushed the autodetect_run_type branch from c61b4c5 to 08bd523 Compare March 24, 2025 18:29
@igalshilman igalshilman merged commit 21d682e into restatedev:main Mar 24, 2025
4 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Mar 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant