I would like to know if there is any way or any plan to have the ability of validation values/types of json fields when parsing?
Let's say we have a struct with time.Time field:
type Country struct {
Id int
CreatedAt time.Time
}
and try to parse a json where CreatedAt is an integer:
Hello all !
I would like to know if there is any way or any plan to have the ability of validation values/types of json fields when parsing? Let's say we have a struct with time.Time field:
and try to parse a json where CreatedAt is an integer:
Would it be possible to get in the error more detailed info, something like:
In case of several nested fields (including array fields) and several errors it could be:
Thank you in advance!