Releases: marrow16/valix
Releases · marrow16/valix
v1.13.1
Fix security vulnerabilities
v1.13.0
- Upgrade go version (to 1.19)
- Ignore non-exported fields (in
v8nConstraints()
)
- Added
OptionIgnoreOasTags
(for use with ValidatorFor()
)
v1.12.3
- Fixed
NetIsCP
- should not allow trailing :
- Added
CheckExchange
option to StringValidEmail
constraint
- Added
CheckHost
option to NetIsHostname
constraint
v1.12.2
Tag parsing now uses go-andiamo/splitter - which allows for quote escaping
v1.12.1
Added IsNull
and IsNotNull
constraints
Also removed constraint reference from README - now maintained in wiki
v1.12.0
Constraints that wrap other constraint(s) now verify if the wrapped is conditional (and only check it if the conditions are met)
Affected constraints are ArrayOf
, ArrayConditionalConstraint
and ConstraintSet
v1.11.3
Improve ValidatorFor
options - can now pass individual options to ValidatorFor
and MustCompileValidatorFor
functions. Also means that these functions no longer need a 2nd nil arg when not setting options. The ValidatorForOptions
struct is retained to maintain backward compatibility.
v1.11.2
Normalisation form in constraints now uses string token.
Also added NormalisationForm
field to StringExactLength
, StringLength
, StringMaxLength
and StringMinLength
constraints.
v1.11.1
StringCharacters
constraint now accepts named unicode ranges
v1.11.0
- Reducing repeating code
- Fix
StringCharacters
constraint (should not use ptrs to unicode.RangeTable
)
- Fix small bugs in tag parsing
- Added docs on public vars and consts
- Made pattern preset consts public
- Added
PropertyValidator.ToV8nTagString()
method (converts to v8n tag representation)