Skip to content

Commit

Permalink
fix missing Validator method
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo82148 committed Feb 17, 2022
1 parent 42d3d29 commit f40059c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion goagen/codegen/validation.go
Expand Up @@ -385,7 +385,9 @@ func validationsCode(att *design.AttributeDefinition, data map[string]interface{
data["required"] = r
val += RunTemplate(requiredValT, data)
}
res = append(res, val)
if val != "" {
res = append(res, val)
}
}
return
}
Expand Down

0 comments on commit f40059c

Please sign in to comment.