[x] I have looked at the documentation here first?
[x] I have looked at the examples provided that may showcase my question here?
Package version eg. v9, v10:
Issue, Question or Enhancement:
Hello, we are using the package to validate our HTTP request body. To generate better message, is it possible to use the JSON tag instead of the validate tag?
Example:
type Address struct {
Street string `validate:"required", json:"strass"`
City string `validate:"required"`
Planet string `validate:"required"`
Phone string `validate:"required"`
}
In case the String is empty, is it possible to generate an error message using the strass?
Package version eg. v9, v10:
Issue, Question or Enhancement:
Hello, we are using the package to validate our HTTP request body. To generate better message, is it possible to use the JSON tag instead of the validate tag?
Example:
In case the String is empty, is it possible to generate an error message using the
strass
?Code sample, to showcase or reproduce: