asaskevich / govalidator

[Go] Package of validators and sanitizers for strings, numerics, slices and structs
MIT License
6.02k stars 556 forks source link

Invalid error result when ValidateStruct function on struct contains array #354

Open luthfikw opened 4 years ago

luthfikw commented 4 years ago

when use ValidateStruct() function, output error inside array is not valid

output message:

panic: Items.1.items: non zero value required

expected:

Items.1.ImpactedTo: non zero value required

here code: https://play.golang.org/p/G7-RAZ7tt_K

sergeyglazyrindev commented 2 years ago

Hello guys! I forked this package cause owner disappeared. Hope, he will be back, but it would be easier to merge these changes back if he is back Link to my repo: create issue there and we'll discuss it.