From 3dfa89d35a3331745f823195189a5bf0b29d9c30 Mon Sep 17 00:00:00 2001 From: texm Date: Mon, 5 Jun 2023 09:20:16 +0800 Subject: [PATCH] remove config validation --- internal/server/dto/apps.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/server/dto/apps.go b/internal/server/dto/apps.go index f850d66..b22c6b7 100644 --- a/internal/server/dto/apps.go +++ b/internal/server/dto/apps.go @@ -267,9 +267,7 @@ type GetAppConfigResponse struct { type SetAppConfigRequest struct { Name string `json:"name" validate:"appName"` - // validate keys and values are alphanumeric - Config map[string]string `json:"config" validate:"dive,keys,alphanum,endkeys,alphanum"` - // Config map[string]string `json:"config"` + Config map[string]string `json:"config"` } type GetAppStorageRequest struct {