Skip to content

Add support for parameterized and generic types in DataConverter (#2413) #2605

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

expanded-for-real
Copy link

Proposal to resolve #2413

@expanded-for-real expanded-for-real requested a review from a team as a code owner July 22, 2025 21:09
@Quinn-With-Two-Ns
Copy link
Contributor

Thanks, I think this makes sense. Can we add a test to verify the reported issue is now resolved? I think we just need to have a workflow with the following signature String execute(String name, List<String> names) , but only start it with a String. We can start it with an untyped stub

* @return the raw Class for the type
*/
static Class<?> getRawClass(Type type) {
if (type instanceof Class) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to handle any other type? I might just need to test but isn't GenericArrayType possible as well?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch regarding GenericArrayType - I've added support for that as well now.

@expanded-for-real
Copy link
Author

@Quinn-With-Two-Ns added specific test you mentioned to GenericParametersWorkflowTest (seemed like the right place to add it), let me know if that looks correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding a new parameter type List to a workflow input causes the data converter to fail
2 participants