From a57e0836d14d4b9be06601f76abaa3005f2833ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=97=AD=E7=BA=A2=20=28karminski-=E7=89=99?= =?UTF-8?q?=E5=8C=BB=29?= Date: Tue, 23 Apr 2024 19:28:47 +0800 Subject: [PATCH] FIX validator for tencent cos resource. --- src/actionruntime/tencentcos/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/actionruntime/tencentcos/types.go b/src/actionruntime/tencentcos/types.go index 606e628f..fbf638b8 100644 --- a/src/actionruntime/tencentcos/types.go +++ b/src/actionruntime/tencentcos/types.go @@ -41,7 +41,7 @@ var ACLs = map[string]bool{ } type Action struct { - Commands string `validate:"required,oneof=list read download delete batchDelete upload batchUpload"` + Commands string `validate:"required,oneof=list getDownloadURL"` CommandArgs map[string]interface{} `validate:"required"` }