From 4ed6c7c74ddb32fac55273664ea00d0cbc6dd69d Mon Sep 17 00:00:00 2001 From: yusing Date: Sun, 14 Sep 2025 00:04:14 +0800 Subject: [PATCH] fix(rules): add swaggertype annotations for Rule fields --- 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"` } )