Releases: gostalt/validate
Releases · gostalt/validate
v1.2.0
Added
Empty
rule to determine if a form field's content is empty or not.
v1.1.0
Added
- (#7) Added TelnetEmail validator to allow more accurate email validation
Changed
- Altered failure error message for MXEmail validator
v1.0.1
Changed
- The request form is automatically parsed when the Check is created.
v1.0.0
Added
- Additional date formats. Validators now exist for
RFC1123
, RFC822
and UnixDate
, based on Go's built-in date formats.
- MX Validator. The
MXEmail
Rule determines if an MX records exists on the domain, increasing the likelihood of the parameter being genuine.
v0.3.2
This release adds benchmarks for some rules and changes the way the integer rule determines a pass.
v0.3.1
This release defines two error constants that are returned when running a validator: EmptyRuleset
and ValidationFailed
, allowing you to inspect errors to better determine what to do with them.
v0.3.0
This release changes the way the Message
type is composed, and changes the way the validate.Response
function returns data.
v0.2.0
This release adds a number of predefined rules that can be used to quickly create common validation checks.