[Go] Package of validators and sanitizers for strings, numerics, slices and structs
5.97k
stars
554
forks
source link
Validation of a pointer to a variable of type bool now checks the value of the variable, not the pointer #460
Open
wberdnik opened 2 years ago
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)Current behavior
How to ensure compatibility?