We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validation of a pointer to a variable of type bool now checks the value of the variable, not the pointer. Error of compatibility has.
var v struct { Value *bool json:"value" valid:"required"} json.Unmarshal([]byte({"value":false}), &v)
json:"value" valid:"required"
{"value":false}
ok, err := govalidator.ValidateStruct(v) =>
=>
How to ensure compatibility?
The text was updated successfully, but these errors were encountered:
see the same issue. This seems a regression.
Sorry, something went wrong.
No branches or pull requests
BC Break Report
Summary
Validation of a pointer to a variable of type bool now checks the value of the variable, not the pointer. Error of compatibility has.
Previous behavior (one month ago)
var v struct { Value *bool
json:"value" valid:"required"
}json.Unmarshal([]byte(
{"value":false}
), &v)ok, err := govalidator.ValidateStruct(v)
=>
Current behavior
=>
How to ensure compatibility?
The text was updated successfully, but these errors were encountered: