diff --git a/pkg/definitions/rule.go b/pkg/definitions/rule.go index 18e07e4..9e9005d 100644 --- a/pkg/definitions/rule.go +++ b/pkg/definitions/rule.go @@ -3,6 +3,7 @@ package definitions import "encoding/json" type Rule struct { + ID uint64 `json:"id" validate:"required,gt=0"` Name string `json:"name" validate:"required"` Match Match `json:"match" validate:"required,dive"` Comment string `json:"comment,omitempty"`