From 0b8b643f85a757f9261d3c7955ea914183699584 Mon Sep 17 00:00:00 2001 From: hannatao <413024870@qq.com> Date: Tue, 5 Dec 2023 15:54:04 +0800 Subject: [PATCH] Change namespace check to svc_name rule --- api/application.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/application.go b/api/application.go index 2a44f761..c06da1bd 100644 --- a/api/application.go +++ b/api/application.go @@ -765,7 +765,7 @@ func (api *API) validApplication(namespace string, app *models.ApplicationView) return common.Error(common.ErrRequestParamInvalid, common.Field("error", "custom namespace of yaml app is invalid(baetyl-edge/baetyl-edge-system)")) } - if err := utils.GetValidator().Var(customNS, "res_name"); err != nil { + if err := utils.GetValidator().Var(customNS, "svc_name"); err != nil { return common.Error(common.ErrRequestParamInvalid, common.Field("error", err.Error())) } }