go-playground / validator

:100:Go Struct and Field validation, including Cross Field, Cross Struct, Map, Slice and Array diving
MIT License
16.41k stars 1.31k forks source link

ValidateMap error #1107

Closed LjtGentle closed 1 year ago

LjtGentle commented 1 year ago

Package version eg. v10:

Issue, Question or Enhancement:

json Unmarshal nested map will be []interface not expected []map[string]interface{}, so call ValidateMap will be validation error.

Code sample, to showcase or reproduce: