Azure / azure-functions-durable-extension

Durable Task Framework extension for Azure Functions
MIT License
711 stars 263 forks source link

Default null input parameter not working in CallActivity #2703

Closed nhuurnink closed 5 months ago

nhuurnink commented 6 months ago

When running: await context.CallActivityAsync<string>(nameof(MyActivity));

[Function(nameof(MyActivity))]
public Task<string[]> MyActivity([ActivityTrigger] string trigger, FunctionContext functionContext)

results in: Could not populate the value for 'trigger' parameter. Consider updating the parameter with a default value.

Which is weird, since CallActivityAsync is supposed to have a default value for object? input = null.

jviau commented 6 months ago

Most likely related to #2674

MatLeger commented 6 months ago

I have the same problem with default null input parameters. I also have the same problem described in #2674.

nhuurnink commented 6 months ago

It might be related, but I only have the quotes problem when using DurableTask 1.1.0.

jviau commented 5 months ago

Fixed by #2708