mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-24 17:58:45 +02:00
make rules.name optional
This commit is contained in:
@@ -39,7 +39,7 @@ type (
|
|||||||
one match means this line is matched.
|
one match means this line is matched.
|
||||||
*/
|
*/
|
||||||
Rule struct {
|
Rule struct {
|
||||||
Name string `json:"name" validate:"required"`
|
Name string `json:"name"`
|
||||||
On RuleOn `json:"on"`
|
On RuleOn `json:"on"`
|
||||||
Do Command `json:"do"`
|
Do Command `json:"do"`
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user