From 920aed7beea03d7f1658b874a0c322aafccb63fe Mon Sep 17 00:00:00 2001 From: yusing Date: Thu, 4 Sep 2025 06:34:31 +0800 Subject: [PATCH] fix(rules): add swaggertype annotations for On and Do fields in Rule struct --- internal/route/rules/rules.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/route/rules/rules.go b/internal/route/rules/rules.go index 02378bd7..540cbc54 100644 --- a/internal/route/rules/rules.go +++ b/internal/route/rules/rules.go @@ -40,8 +40,8 @@ type ( */ Rule struct { Name string `json:"name"` - On RuleOn `json:"on"` - Do Command `json:"do"` + On RuleOn `json:"on" swaggertype:"string"` + Do Command `json:"do" swaggertype:"string"` } )