go-playground / validator

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

Fix: panic in struct level example #1237

Open parviz-yu opened 7 months ago

parviz-yu commented 7 months ago

Accessing an array element at index 3 causes index out of range panic

Fixes Or Enhances

Make sure that you've checked the boxes below before you submit PR:

@go-playground/validator-maintainers

coveralls commented 7 months ago

Coverage Status

coverage: 74.172%. remained the same when pulling 709d4cc020d37315f809854a77f72f78db197228 on parviz-yu:master into b328f72e15814aba56e018c06675b8d679ad6e90 on go-playground:master.