You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered: