This commit is contained in:
2025-02-07 11:11:43 +03:00
parent e04dc42d2b
commit cbce7f434f
18 changed files with 144 additions and 47 deletions

View File

@@ -94,6 +94,9 @@ func errorMessage(fe validator.FieldError) string {
case "mtu":
return fmt.Sprint(prefix, fe.Field(), "must be ", mtuMin, "-", mtuMax)
case "preferredCPU":
return fmt.Sprint(prefix, fe.Field(), "must be equal to or greater than", -1)
case "computex86NetType":
return fmt.Sprintf("%s %s must be one of the following: %s",
prefix,