Skip to content

Commit 4982709

Browse files
committed
Add FailOnEmpty option to input
1 parent d4bdee0 commit 4982709

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

input/v1beta1/input.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ type Input struct {
6767
// +optional
6868
SkipQueryWhenTargetHasData *bool `json:"skipQueryWhenTargetHasData,omitempty"`
6969

70+
// FailOnEmpty controls whether the function should fail when input lists are empty.
71+
// If true, the function will error on empty input lists.
72+
// If false or unset, empty lists are valid and will result in a no-op.
73+
// +optional
74+
FailOnEmpty *bool `json:"failOnEmpty,omitempty"`
75+
7076
// Identity defines the type of identity used for authentication to the Microsoft Graph API.
7177
Identity *Identity `json:"identity,omitempty"`
7278
}

0 commit comments

Comments
 (0)