7bacb257 by slene

Merge pull request #538 from admpub/patch-2

validators bug fixed
2 parents b59dae6f ad841872
...@@ -67,7 +67,7 @@ func (r Required) IsSatisfied(obj interface{}) bool { ...@@ -67,7 +67,7 @@ func (r Required) IsSatisfied(obj interface{}) bool {
67 } 67 }
68 68
69 func (r Required) DefaultMessage() string { 69 func (r Required) DefaultMessage() string {
70 return "Required" 70 return fmt.Sprint(MessageTmpls["Required"])
71 } 71 }
72 72
73 func (r Required) GetKey() string { 73 func (r Required) GetKey() string {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!