You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I was using validator 0.11 in my own project and yours uses validator 0.12. This for some strange reason I encountered a build error where the validator::traits::Validate trait was not satisfied for one of my structs.
The issue ended up being that I was deriving validator 0.11's Validate, while FromRequest on Json from this crate was using 0.12.
Please consider a pub use validator::Validate in this crate so that it is easy to use the same version of the Validate trait.
The text was updated successfully, but these errors were encountered:
c650
added a commit
to c650/actix-web-validator
that referenced
this issue
Jan 7, 2021
Sorry for the delay.
I think it's not a problem.
But actix-web-validator use 0.12 (latest) version of validator crate.
After adding reexport, Validator trait will be from 0.12 version and you can't use it with Validator from 0.11 version anyway. But you can replace it in your code.
Hi, I was using
validator 0.11
in my own project and yours usesvalidator 0.12
. This for some strange reason I encountered a build error where thevalidator::traits::Validate
trait was not satisfied for one of mystruct
s.The issue ended up being that I was deriving
validator 0.11
'sValidate
, whileFromRequest
onJson
from this crate was using0.12
.Please consider a
pub use validator::Validate
in this crate so that it is easy to use the same version of theValidate
trait.The text was updated successfully, but these errors were encountered: