Skip to content

Commit c75a530

Browse files
committed
include parameter name in example
1 parent 588ac0e commit c75a530

File tree

1 file changed

+5
-1
lines changed
  • website/docs/plugin/framework/functions/parameters

1 file changed

+5
-1
lines changed

website/docs/plugin/framework/functions/parameters/dynamic.mdx

+5-1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ func (f ExampleFunction) Definition(ctx context.Context, req function.Definition
5151
// ... other Definition fields ...
5252
Parameters: []function.Parameter{
5353
function.DynamicParameter{
54+
Name: "dynamic_param",
5455
// ... potentially other DynamicParameter fields ...
5556
},
5657
},
@@ -96,7 +97,10 @@ func (f ExampleFunction) Definition(ctx context.Context, req function.Definition
9697
resp.Definition = function.Definition{
9798
// ... other Definition fields ...
9899
Parameters: []function.Parameter{
99-
function.DynamicParameter{},
100+
function.DynamicParameter{
101+
Name: "dynamic_param",
102+
// ... potentially other DynamicParameter fields ...
103+
},
100104
},
101105
}
102106
}

0 commit comments

Comments
 (0)