validasi 0.0.4 validasi: ^0.0.4 copied to clipboard
An easy to use and flexible validation library for Dart and Flutter. Easily validate your forms input with built-in rules or create your own.
0.0.1 #
Initial release of Validasi library. This release includes the following features:
- Built-in validators for common data types
- Object and Array schema for complex data validation
- Transformer to convert input value into desired format
- Safe validation using
tryParse
andtryParseAsync
method - Custom rule support
0.0.2 #
This release includes the following changes:
- Update documentation: fix typo
customAsync
tocustom
, addvalidateAsync
to Helpers section - Adjust validation(core): ensure rules are unique by using Map, so when rule registered more than once, the old one will be replaced
- Adjust validator test (core):
introduce
should only register rule once
test and adjust therules
from array to map - Update package description to meet dart package criteria
- Update image in
README.md
to use absolute link
0.0.3 #
Minor release to update the following:
- Expose
FailFn
,CustomRule
,CustomCallback
API
0.0.4 #
This release introduce GenericValidator
, add some rules for Array Validation, and add some methods for Object Validation.
- Add
max
,notContains
,contains
, andunique
rule forArrayValidator
. - Add
extend
andwithout
method forObjectValidator
. - Add new
GenericValidator
throughValidasi.generic<T>(transformer)
to help validate any type.