From 7f3d687387929bf8bfe73b8f3ec608ac69ad4fc0 Mon Sep 17 00:00:00 2001 From: thinkerou Date: Thu, 17 May 2018 19:59:29 +0800 Subject: [PATCH] update readme for adding binding about skip validate --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 70a5a13b..7cfb5375 100644 --- a/README.md +++ b/README.md @@ -571,6 +571,9 @@ $ curl -v -X POST \ {"error":"Key: 'Login.Password' Error:Field validation for 'Password' failed on the 'required' tag"} ``` +**Skip validate** +When running the above example using the above the `curl` command, it returns error. Because the example use `binding:"required"` for `Password`. If use `binding:"-"` for `Password`, then it will not return error when running the above example again. + ### Custom Validators It is also possible to register custom validators. See the [example code](examples/custom-validation/server.go).