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())) } }