Gorm: qor/validations with gorm v2

Created on 21 Jul 2020  路  2Comments  路  Source: go-gorm/gorm

Your Question

Hello,

I am using qor/validations for one of my projects to validate the field of certain structs.

After migrating to gorm v2 it seems like underlying callbacks made in qor/validations could not be used directly in v2.

Is there a plan to adopt qor/validations for gorm v2, or are there alternative ways of validating structs fields (like how qor/validations used govalidator) or would it be up to users to port the functionality?

question

Most helpful comment

There is a plan, @raven-chen will work on upgrading QOR to gorm v2.

All 2 comments

There is a plan, @raven-chen will work on upgrading QOR to gorm v2.

hi @jinzhu, do you have any updates on this?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

easonlin404 picture easonlin404  路  3Comments

leebrooks0 picture leebrooks0  路  3Comments

bramp picture bramp  路  3Comments

superwf picture superwf  路  3Comments

pjebs picture pjebs  路  3Comments