make rules.name optional

This commit is contained in:
yusing 2025-02-06 06:18:18 +08:00
parent 1a5f3735cf
commit 39c5886d7a

View file

@ -39,7 +39,7 @@ type (
one match means this line is matched.
*/
Rule struct {
Name string `json:"name" validate:"required"`
Name string `json:"name"`
On RuleOn `json:"on"`
Do Command `json:"do"`
}