Change Log
1.4.0
Features
- add Custom Function, allow user to fully customize validation rules
- add Built-in Model
BREAKING CHANGES
- when the option
required
isfalse
, the value ofundefined
can be accepted and will not cause a wrong validation, such as { name: undefined }. - when validator receives a value of
undefined
and Data Model has adefault
value, default value will coverundefined
. So if you want to match aundefined
value, please make sure you don't define a default value.
1.3.2
- update README.md
1.3.1
Features
- improve the compatibility of ES module
1.3.0
Features
- add the validation of empty string
- add the validation of the length, max length and min length of string
- add the validation of NaN on Number
1.2.1
- update README.md
1.2.0
Features
- add simple model to construct a data model
1.1.0
Bug Fixes
- type:
undefined
can not be matched when there is no field in the data.
Features
- add
objItems
andarrItems
to distinguish the same optionitems
before
1.0.0
- param-validator.js released