Releases: yassun7010/serde_valid
Releases · yassun7010/serde_valid
v2.5.0
v0.24.0
Breaking Changes
By switching to syn v2, attributes can now be specified more naturally.
This disruptive change provides a uniform policy for how attributes are written.
To provide a transition period and to guide you going forward, warnings will be displayed for existing writing styles.
The following is a change in the way attributes are specified.
#[validate(enumerate(???))]
->#[validate(enumerate = [???])]
( #73)#[validate(custom(???))]
->#[validate(custom = ???)]
(#75)#[validate(..., message_fn(???))]
->#[validate(..., message_fn = ???)]
(#76)
New Feeatures
- Support
#[validate(..., message_l10n = ???)]
v0.23.0
v0.21.0
v0.20.0
New features:
- #63 add custom duration validation (Thank you @StivenAigleIxxi @B14ck6u4rd).
v0.18.0
v0.17.0
New Features
- #19 support closure custom function.
Notable Changes
#[rule(validation_method(val))]
is deprecated. Please use#[validate(custom(|s| validation_method(&s.val)))
instead.serde_valid::validation::error::CustomMessage
changes toserde_valid::validation::error::Format
.ToDefaultMessage
trait changes toFormatDefault
trait.IntoLocalization
trait changes toLocalize
trait.
v0.16.3
What's Changed
- Fix: pattern test. by @yassun4dev in #14
- Support raw type field name by @yassun4dev in #15
- Update: README. by @yassun4dev in #16
Full Changelog: v0.16.2...v0.16.3