acanthis 1.3.0
acanthis: ^1.3.0 copied to clipboard
Acanthis is an easy-to-use validation library for Dart and Flutter.
Changelog #
1.3.0 #
1.2.3 #
- refactor: improve overall code quality and performance.
- feat: allow custom error message for all validators.
1.2.2 #
- refactor: add possiblity to use both String and RegExp for
AcanthisString#pattern
validator. - feat: add
AcanthisType#elementType
to get the type of the schema.
1.2.1 #
- refactor: improve overall code quality and performance.
- remove 'fast_immutable_collections' dependency.
1.2.0 #
- feat: add
toJsonSchema
method to generate JSON Schema from Acanthis Types. #10 by francescovallone - feat: add
tuple
validator to create a tuple schema. #10 by francescovallone - feat: add several checks to multiple validators. #10 by francescovallone
- feat: add Metadata System to allow for adding metadata to schemas. #10 by francescovallone
1.1.0 #
- fix:
AcanthisMap.extend
method now does not override existing key-value pairs. #7 by francescovallone - refactor: codebase is now immutable. #6 by dickermoshe
1.0.2 #
- Add
differsFromNow
to theAcanthisDate
validator. - Add
double
andbetween
to theAcanthisNumber
validator. - Add
time
,url
,card
andhexColor
to theAcanthisString
validator.
1.0.1 #
- Add
lazy
validator to allow for recursive schemas.
1.0.0 #
- Upgrade dependencies.
- Add async checks for all validators to allow for a more flexible validation process.
- Add
partial
validator to object validator. - Add more String validators.
- Rename
customCheck
torefine
in all validators. - Add
refineAsync
to all validators. - Add
pipe
andAcanthisPipeline
to allow for more complex validation and transformation processes.
0.1.3 #
0.1.2 #
- Add the
addFieldDependency
function to theobject
validator. - Add information about
addFieldDependency
in theobject
validator. - Remove the
Operations
section from the documentation.
0.1.1 #
Refactor #
- The function
jsonObject
has been renamed asobject
. - Add explicit information about the parse result object
AcanthisParseResult
.
0.1.0 #
- Add the
nullable
validator. - Add the
union
validator. - Add the
boolean
validator. - Add transformation functions for all the validators except
nullable
,boolean
andunion
. - Add tests for all the validators (100% coverage 🎉).
- Add documentation for all the validators.
- [#1] Fix the
string().email()
validator that will now use theemail_validator
package.
0.0.1 #
- Initial version.