mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-02 19:57:42 +08:00
Support environment variable value is empty string
This commit is contained in:
parent
24fb3c96d1
commit
5caf09800d
@ -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"`
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user