Releases: nsat/validatron
Releases · nsat/validatron
v0.2.1
v0.2.0
Added
std::containers::HashSet
now implementsValidate
along with the other stdlib containers.- Added
option_min
andoption_max
field attribute validators.
Changed
- Breaking Change Using a literal string in macro annotations will now be interpreted as an
expression. This makes it possible to inject values by running functions and using types such as
Some(42)
with comparison operators. To inject string literals into macro attributes you will now
now need to escape the literal quotes like so:#[validatron(equal = "\"Foo\"")]
v0.1.0
v0.1.0
Added
- Initial release of
Validatron
- enums are now supported in their various forms
- added the
predicate
field attribute validator for functions that return bool - rename
ErrorBuilder::at_*
functions toErrorBuilder::try_at_*
- added new
ErrorBuilder::at_*
functions which will construct errors at the given location