qor / validations

Validations is a GORM extension, used to validate models when creating, updating
MIT License
134 stars 43 forks source link

recurse when errors are govalidator.Errors inside govalidator.Errors #6

Open r00tkillah opened 5 years ago

r00tkillah commented 5 years ago

This fixes #4

shiba-hiro commented 5 years ago

Sorry for bothering you @jinzhu , but could you kindly check this PR? (It seems you have merged PRs of this repo)

I faced the same problem when I tried to save the data including nesting twice on QOR Admin. And actually this commit prevents panic and shows the appropriate message. Without this fix, it causes panic and shows just "error" to the user.

gonssal commented 2 years ago

Please get this commited, I'm also having this issue with nested data.