Skip to content

Commit b5be9bc

Browse files
committed
fix: correct the usage of json tags in model
1 parent a742e3c commit b5be9bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sysdig/internal/client/v2/vulnerability_policy_model.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ type VulnerabilityPolicy struct {
55
Description string `json:"description"`
66
Name string `json:"name"`
77
Stages []Stage `json:"stages,omitempty"`
8-
ID *int32 `json:"id",omitempty`
9-
Identifier *string `json:"identifier",omitempty`
8+
ID *int32 `json:"id,omitempty"`
9+
Identifier *string `json:"identifier,omitempty"`
1010
}
1111

1212
type Bundle struct {
@@ -15,7 +15,7 @@ type Bundle struct {
1515

1616
type Stage struct {
1717
Name string `json:"name"`
18-
Configuration []Configuration `json:"configuration",omitempty`
18+
Configuration []Configuration `json:"configuration,omitempty"`
1919
}
2020

2121
type Configuration struct {

0 commit comments

Comments
 (0)