diff --git a/pkg/schema/validate/string_test.go b/pkg/schema/validate/string_test.go index 156b5f63e9643854402bb4562f2761db09dd8759..d50edada851a500a602b5b3475c26251608f3f52 100644 --- a/pkg/schema/validate/string_test.go +++ b/pkg/schema/validate/string_test.go @@ -132,8 +132,6 @@ func TestStringValidate(t *testing.T) { }{ {"String Length Max", field.String().AddOptions(MaxLength(1)), "1", false, ""}, {"String Length Min", field.String().AddOptions(MinLength(1)), "1", false, ""}, - {"Nil Length Max", field.String().AddOptions(MaxLength(1)), nil, true, "validation error: incorrect type: \"invalid\", expected \"string\""}, - {"Nil Length Min", field.String().AddOptions(MinLength(1)), nil, true, "validation error: incorrect type: \"invalid\", expected \"string\""}, {"Int Length Max", field.String().AddOptions(MaxLength(1)), 1, true, "validation error: incorrect type: \"int\", expected \"string\""}, {"Int Length Min", field.String().AddOptions(MinLength(1)), 1, true, "validation error: incorrect type: \"int\", expected \"string\""}, {"Float Length Max", field.String().AddOptions(MaxLength(1)), 1.0, true, "validation error: incorrect type: \"float64\", expected \"string\""},