Releases: tu6ge/valitron
Releases · tu6ge/valitron
v0.5.3
v0.5.2
v0.5.1
0.5.0
Features
- rename core rule
- type mismatch dont compare
- add compres rules
- add Debug derive of build-in rules
Inner change
- reduce deps of range
Full Changelog: 0.4.1...0.5.0
v0.4.1
v0.4.0
Features
- feat(rule): support Length::eq(x)
- feat(register): parser error message changed
- feat: creating message from validator
- feat: add ValidatorRefine, used by creating message
- changed Validatable
- Add ValidPhrase, used by format string message
- ValidatorError support Index trait, e.g.:
error["field1"]
- RuleShortcut extend Clone, better prompt.
Bugs
- close #17
Full Changelog: 0.3.0...0.4.0
0.3.0
Breaking change:
Rule
trait signature changed:
trait Rule<M> {
...
- fn name(&self) -> &'static str {
- "[rule name]"
- }
+ const THE_NAME: &'static str = "[rule name]";
}
and
trait RuleShortcut {
...
- fn name(&self) -> &'static str {
- "[rule name]"
- }
+ const NAME: &'static str = "[rule name]";
}
about detail #20
v0.2.4
v0.2.3
Features
- Remove default define of generics
- Reduce limit of impl of Validatable
- Assert field exist
When using custom validator
before
let validator = Validator::<CustomMessage>::new().rule("foo", CustomRule1);
now
let validator = Validator::new().rule("foo", CustomRule1);
Reduceing grammar noise
v0.2.2
Features
- Add available::*::as_ref
- Add available::*::as_mut
- Add available::*::copied
- Add available::*::cloned
- Add available::*::copied on &mut
- Add available::*::cloned on &mut
- Reduce limit of build-in rules generics argement (not need to implement Debug)
- Unsupport &str deserialize, and when encountering, give the user a reasonable panic tip.
- Reduce limit of impl of Validator
- Reduce limit of impl of RuleList
- Sealed RuleExt trait
- Some painc changed to debug_assert