Skip to content
Myr

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

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* update readme for adding binding about skip validate * update readme for adding binding about skip validate

authored by 田欧 · committed by Bo-Yi Wu · parent c2f083f · Browse files · 1 file+4 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−0 removed

  • other:+4 added−0 removed

1 file+4 added−0 removed

modified:README.md+4 added
570 unmodified lines
571<572{"error":"Key: 'Login.Password' Error:Field validation for 'Password' failed on the 'required' tag"}573```574575**Skip validate**576577When 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.578579### Custom Validators580581It is also possible to register custom validators. See the [example code](examples/custom-validation/server.go).582
1128 unmodified lines