Skip to content

Commit

Permalink
include parameter name in example
Browse files Browse the repository at this point in the history
  • Loading branch information
austinvalle committed Mar 20, 2024
1 parent 588ac0e commit c75a530
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ func (f ExampleFunction) Definition(ctx context.Context, req function.Definition
// ... other Definition fields ...
Parameters: []function.Parameter{
function.DynamicParameter{
Name: "dynamic_param",
// ... potentially other DynamicParameter fields ...
},
},
Expand Down Expand Up @@ -96,7 +97,10 @@ func (f ExampleFunction) Definition(ctx context.Context, req function.Definition
resp.Definition = function.Definition{
// ... other Definition fields ...
Parameters: []function.Parameter{
function.DynamicParameter{},
function.DynamicParameter{
Name: "dynamic_param",
// ... potentially other DynamicParameter fields ...
},
},
}
}
Expand Down

0 comments on commit c75a530

Please sign in to comment.