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
Validation does not currently work for slices of structs.
eg.
type Person struct {
FirstName string `json:"first_name" binding:"Required"`
LastName string `json:"last_name" binding:"Required"`
}
type Group struct {
Name string `json:"name" binding:"Required"`
People []*Person `json:"people"`
}
sending a payload with the following is currently validated as correct, though it should raise an issue for the missing FirstName
Validation does not currently work for slices of structs.
eg.
sending a payload with the following is currently validated as correct, though it should raise an issue for the missing FirstName
The text was updated successfully, but these errors were encountered: