소스 검색

doc: update readme for adding binding about skip validate (#1359)

* update readme for adding binding about skip validate

* update readme for adding binding about skip validate
田欧 7 년 전
부모
커밋
caf3e350a5
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      README.md

+ 4 - 0
README.md

@@ -572,6 +572,10 @@ $ curl -v -X POST \
 {"error":"Key: 'Login.Password' Error:Field validation for 'Password' failed on the 'required' tag"}
 {"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
 ### Custom Validators
 
 
 It is also possible to register custom validators. See the [example code](examples/custom-validation/server.go).
 It is also possible to register custom validators. See the [example code](examples/custom-validation/server.go).