Skip to content

Try to auto deduce the types provided for ctx.run() #63

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

Merged
merged 1 commit into from
Mar 24, 2025

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