From 2367d307c572c4f9745393476fed0b44faf7c272 Mon Sep 17 00:00:00 2001 From: Talha Ansari Date: Sun, 29 Sep 2019 11:29:42 -0400 Subject: [PATCH 1/2] Fix the import path for non-standard validators Issue [#521](https://github.com/go-playground/validator/issues/521) --- non-standard/validators/notblank.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/non-standard/validators/notblank.go b/non-standard/validators/notblank.go index 5c2d806..e2269c4 100644 --- a/non-standard/validators/notblank.go +++ b/non-standard/validators/notblank.go @@ -4,7 +4,7 @@ import ( "reflect" "strings" - "github.com/andreiavrammsd/validator" + "gopkg.in/go-playground/validator.v9" ) // NotBlank is the validation function for validating if the current field From 4e2a13b9bf3fdb5078643226a0ac212d1cd0aeed Mon Sep 17 00:00:00 2001 From: Talha Ansari Date: Sun, 29 Sep 2019 11:41:10 -0400 Subject: [PATCH 2/2] Updated tests to reflect the import change --- non-standard/validators/notblank_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/non-standard/validators/notblank_test.go b/non-standard/validators/notblank_test.go index 1eecae6..036f06d 100644 --- a/non-standard/validators/notblank_test.go +++ b/non-standard/validators/notblank_test.go @@ -3,7 +3,7 @@ package validators import ( "testing" - "github.com/andreiavrammsd/validator" + "gopkg.in/go-playground/validator.v9" "gopkg.in/go-playground/assert.v1" )