diff --git a/api/appbean/AppDetail.go b/api/appbean/AppDetail.go index ea07c441d8..1cbda42a5a 100644 --- a/api/appbean/AppDetail.go +++ b/api/appbean/AppDetail.go @@ -64,7 +64,7 @@ type DeploymentTemplate struct { ShowAppMetrics bool `json:"showAppMetrics"` IsOverride bool `json:"isOverride"` IsBasicViewLocked bool `json:"isBasicViewLocked"` - CurrentViewEditor models.ChartsViewEditorType `json:"currentViewEditor" validate:"required"` + CurrentViewEditor models.ChartsViewEditorType `json:"currentViewEditor"` //default "UNDEFINED" in db } type AppWorkflow struct { diff --git a/pkg/chart/ChartService.go b/pkg/chart/ChartService.go index 35b4c757ee..0015a3a33a 100644 --- a/pkg/chart/ChartService.go +++ b/pkg/chart/ChartService.go @@ -76,7 +76,7 @@ type TemplateRequest struct { Schema json.RawMessage `json:"schema"` Readme string `json:"readme"` IsBasicViewLocked bool `json:"isBasicViewLocked"` - CurrentViewEditor models.ChartsViewEditorType `json:"currentViewEditor" validate:"required"` + CurrentViewEditor models.ChartsViewEditorType `json:"currentViewEditor"` //default "UNDEFINED" in db UserId int32 `json:"-"` } diff --git a/pkg/pipeline/PropertiesConfig.go b/pkg/pipeline/PropertiesConfig.go index 354402cb37..e03795c0d5 100644 --- a/pkg/pipeline/PropertiesConfig.go +++ b/pkg/pipeline/PropertiesConfig.go @@ -54,7 +54,7 @@ type EnvironmentProperties struct { ChartRefId int `json:"chartRefId,omitempty" validate:"number"` IsOverride bool `sql:"isOverride"` IsBasicViewLocked bool `json:"isBasicViewLocked"` - CurrentViewEditor models.ChartsViewEditorType `json:"currentViewEditor" validate:"required"` + CurrentViewEditor models.ChartsViewEditorType `json:"currentViewEditor"` //default "UNDEFINED" in db } type EnvironmentPropertiesResponse struct {