Skip to content

Commit e8abb60

Browse files
authored
fix(falco): json omitempty on description and output (#268)
1 parent 5d0427a commit e8abb60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sysdig/internal/client/secure/models.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ type notificationChannelWrapper struct {
125125
type Rule struct {
126126
ID int `json:"id,omitempty"`
127127
Name string `json:"name"`
128-
Description string `json:"description"`
128+
Description string `json:"description,omitempty"`
129129
Tags []string `json:"tags"`
130130
Details Details `json:"details"`
131131
Version int `json:"version,omitempty"`
@@ -154,7 +154,7 @@ type Details struct {
154154
// Falco
155155
Append *bool `json:"append,omitempty"`
156156
Source string `json:"source,omitempty"`
157-
Output string `json:"output"`
157+
Output string `json:"output,omitempty"`
158158
Condition *Condition `json:"condition,omitempty"`
159159
Priority string `json:"priority,omitempty"`
160160
Exceptions []*Exception `json:"exceptions,omitempty"`

0 commit comments

Comments
 (0)