Skip to content

Commit b391b00

Browse files
committed
add omitempty with json key Index in DeploymentAndCmCsConfigDto
1 parent 7f2ae8a commit b391b00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/configDiff/bean/bean.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ type DeploymentAndCmCsConfigDto struct {
144144
SecretsData *DeploymentAndCmCsConfig `json:"secretsData"`
145145
PipelineConfigData *DeploymentAndCmCsConfig `json:"pipelineConfigData,omitempty"`
146146
IsAppAdmin bool `json:"isAppAdmin"`
147-
Index int `json:"index"`
147+
Index int `json:"index,omitempty"`
148148
}
149149

150150
func NewDeploymentAndCmCsConfigDto() *DeploymentAndCmCsConfigDto {

0 commit comments

Comments
 (0)