accord
accord copied to clipboard
Data validation library for Rust
I'm really not sure about this, since it's easy to make an URL validator too restrictive so as to hit false on obscure but valid urls.
I'm really not sure about this, since it's easy to make an email validator too restrictive so as to hit false on obscure but valid urls.
The patter used to implement `length` and `range` validators using `RangeInclusive` is ugly; especially the panic here: https://github.com/ChrisBuchholz/accord/blob/master/src/validators.rs#L74 Find a better way.
If you're looking for an idea for something to do, I think it would be pretty cool if I could: ```rust #[derive(AccordValidate)] struct Account { #[accord_rule(length(1..64))] name: String, #[accord_rule(length(5..64), contains("@"),...
Being able to derive support for `FromForm for Validated where T: Accord + Validated` and `FromData` would make Rocket integration much simpler.