Support environment variable value is empty string

This commit is contained in:
yangk 2021-05-13 16:07:24 +08:00
parent 24fb3c96d1
commit 5caf09800d

View File

@ -1250,7 +1250,7 @@ type AddTenantServiceEnvVar struct {
ContainerPort int `validate:"container_port|numeric_between:1,65535" json:"container_port"` ContainerPort int `validate:"container_port|numeric_between:1,65535" json:"container_port"`
Name string `validate:"name" json:"name"` Name string `validate:"name" json:"name"`
AttrName string `validate:"env_name|required" json:"env_name"` AttrName string `validate:"env_name|required" json:"env_name"`
AttrValue string `validate:"env_value|required" json:"env_value"` AttrValue string `validate:"env_value" json:"env_value"`
IsChange bool `validate:"is_change|bool" json:"is_change"` IsChange bool `validate:"is_change|bool" json:"is_change"`
Scope string `validate:"scope|in:outer,inner,both,build" json:"scope"` Scope string `validate:"scope|in:outer,inner,both,build" json:"scope"`
} }