Closed antifuchs closed 7 months ago
Thanks for your feedback! The new version of validator introduces significant changes, particularly with the use of arguments in validations, so upgrading axum-valid
to be compatible with this new version will take some time for adjustments and testing. I'll work on this update as quickly as possible, but ensuring everything works smoothly might take a bit longer. Please stay tuned, and thank you for your understanding and patience!
Please try the latest version of axum-valid (0.17.0), now supporting validator of 0.17.0. Thanks!
Symptoms
Just spent a bunch of minutes with a real head-scratcher of a problem: I'd followed the instructions on the readme for getting set up with
validator
, and using the following (abbreviated) code:Got the following error:
which is a really weird one to receive when you just asserted that the trait is implemented.
What's wrong
However: axum-valid pulls in a different version of
validator
thancargo add validator
does. So my lockfile has axum-valid's validator crate pinned at 0.16.1, while my project has it at 0.17.0. That results in incompatible types.What to do
I'd suggest bumping the validator dependency, or updating the readme to match the version of validator required in this crate.