Closed Roms1383 closed 3 years ago
Ok for beginners like me reading this, I'm not sure it's the correct way to fix but anyway I got it working by adding crates dependencies to the Cargo.toml :
[dependencies]
# ...
validator = "0.12.0"
validator_derive = "0.12.0"
Or simply :
[dependencies]
# ...
validator = { version = "0.12", features = ["derive"] }
i get same problem.
As I see reexport Validate is a bad idea.
https://github.com/Keats/validator/blob/e39ec89f4026e97e3089dabc40e33129a1053a6b/validator_derive/src/lib.rs#L75
Validate
macro directly use ::validator
crate and reexporting can not help in this situation.
The correct way is to add explicit validator
dependency into your project as @Roms1383 proposes.
I will remove reexporting Validator in the next major release
Hello ! I'm actually facing an issue while trying to use
actix-web-validator
.issue
When using
Validate
, e.g. :I get the following error :confused: :
I naively tried to add the following in the root already :alembic: :
Unsuccessfully 😅
context
Thanks in advance for the help you can provide :smiley: