mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-10-12 01:58:46 +02:00
all: add flush cache domains config
This commit is contained in:
1 parent
34ebe9b054
commit
b50cccac85
7 files changed
+74
-32
No files matched your search
@@ -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