What happened?
Expected: validation error, phone codes starting with +0 are not allowed.
Actual: no error.
Version
v10.28.0
Example Code
package main
import (
"fmt"
validator "github.com/go-playground/validator/v10"
)
func main() {
v := validator.New(validator.WithRequiredStructEnabled())
err := v.Var("+0123456789", "e164")
fmt.Println(err)
}