- Added
allowEmpty: true
option as a counterpart fornonEmpty: false
.
-
Added custom type creation utility functions:
conditional
depends
filter
oneOf
arrayOfOneOf
regexp
-
Fixed custom
date()
types not being parsed automatically when validating data.
- Partially rewrote some parts of the code in a cleaner way.
- Updated to
[email protected]
. - Added new
type
:null
.
- (breaking change) Changed how
structure: "flat"
works withJSON.stringify()
-ed objects and arrays: they no longer have to have all their "leaf" properties to be strings. In other words, the previously used "weird" behavior in that case was replaced with a non-"weird" one.
- Added
extends
feature.
-
Refactored code.
-
Added
any
type.
-
(non-compatible change) In
when
condition, renamed$present
to$exists
. -
Added
oneOfType
type.
- Initial release