Skip to content

Releases: nsat/validatron

v0.2.1

18 Feb 18:21
Compare
Choose a tag to compare

Changed

  • Better error messages for inbuilt validators

v0.2.0

29 Jan 11:32
Compare
Choose a tag to compare

Added

  • std::containers::HashSet now implements Validate along with the other stdlib containers.
  • Added option_min and option_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

07 Jan 15:53
ad0f26d
Compare
Choose a tag to compare

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 to ErrorBuilder::try_at_*
  • added new ErrorBuilder::at_* functions which will construct errors at the given location