somehowchris / rocket-validation

A guard to validate data received by rocket via validator
16 stars 4 forks source link

update dependencies #37

Open vaytea opened 5 months ago

vaytea commented 5 months ago

hello, Thanks for this cool crate. I just found it today and it is great. There is a problem with add the crate to a project according to the documentation.

[dependencies] rocket-validation = "0.1.0" validator="?"

this is currently add validator = "0.18.1" which is incompatible with rocket-validation. Currently I switch to "0.16.1" according to the examples in the repository.

Another unrelated thing: It's good to implement Deref for Validated struct for easier access to inner json

hackerzhuli commented 3 months ago

@vaytea I encounter the same problem. And indeed just use older version of validator worked. Thank you.