- Bumped deps to latest versions
- Fixed regexes for some european countries in
PostalCodeValidator
- Fixed documentation for
LuhnValidator
: adds example and documentation for:transformer
optional function
validate_email
: Adds email MX check with:check_mx_record
validator.- Bumped dependencies, including credo and burnex.
- Added some tests on
TimeValidator
,DateValidator
andDateTimeValidator
. - Adds a
:transformer
func optional argumet toLuhnValidator
if you need to change the value before validation without modifying the changeset. It's useful if the number contains letters that must be converted to digits before checking the Luhn validity. - Fixed
SocialSecurityValidator
by using a less strict character filter.
- Ecto Validators:
validate_email
: Fix default checks to:html_input
instead of:pow
and adds tests to confirm this is always the case to match documentationvalidate_email
: Update:pow
validation with upstream changesvalidate_phone_number
: Validate phone numbers using libphonenumber
- Misc:
- moved from Travis CI to GitHub Actions
- Ecto Validators:
validate_email
: Improved email validation options and better documentation about what to expect.validate_url
: Improved documentation about what is supported.validate_postal_code
: Added support for all countries. Still only a sanity check. There is no full databases of all postal codes packages into this lib ;)
- Ecto Helpers:
validate_many
: adds validation for multiple fields with the same validation function.
- Ecto Validators:
validate_date
: validatesDate
(equality, after, before)validate_datetime
: validatesDateTime
(equality, after, before)validate_time
: validatesTime
(equality, after, before)validate_email
: validates emails (and can also prevent temporary email providers by usingBurnex
package)validate_luhn
: validates codes that respect the Luhn algorithm such as credit cardsvalidate_url
: validates URLs with various criteriavalidate_string
: validates strings with a given prefixvalidate_postal_code
: validates postal codes for a few european countriesvalidate_social_security
: validates social security numbers for French administration