Boolean rule implementation
guiferpa opened this issue · 0 comments
guiferpa commented
It's not necessary parameters for some rules in tag for runtime validation.
Example:
- There's no sense put true as parameter value below
type Body struct {
Text string `json:"text" validate:"required=true"`
}
- Instead of the example above it could be just the rule name
type Body struct {
Text string `json:"text" validate:"required"`
}