mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-02-03 22:18:39 +00:00
all: add flush cache domains config
This commit is contained in:
committed by
Cuong Manh Le
parent
34ebe9b054
commit
b50cccac85
@@ -1831,6 +1831,11 @@ func fieldErrorMsg(fe validator.FieldError) string {
|
||||
return fmt.Sprintf("must define at least %s element", fe.Param())
|
||||
}
|
||||
return fmt.Sprintf("minimum value: %q", fe.Param())
|
||||
case "max":
|
||||
if fe.Kind() == reflect.Map || fe.Kind() == reflect.Slice {
|
||||
return fmt.Sprintf("exceeded maximum number of elements: %s", fe.Param())
|
||||
}
|
||||
return fmt.Sprintf("maximum value: %q", fe.Param())
|
||||
case "len":
|
||||
if fe.Kind() == reflect.Slice {
|
||||
return fmt.Sprintf("must have at least %s element", fe.Param())
|
||||
|
||||
Reference in New Issue
Block a user