acanthis 1.5.1
acanthis: ^1.5.1 copied to clipboard
Acanthis is an easy-to-use validation library for Dart and Flutter.
Changelog #
1.5.1 #
- feat: add dot-shorthand support for all types.
- feat: add
AcanthisIntegerandAcanthisDoubleto represent integer and double types separately. - feat: add
templatetype to create template literal schemas with placeholders.
1.5.0 #
- feat: add Open API schema generation for all types.
1.4.6 #
- feat: add
AcanthisType#defaultValueto get the default value of the schema. - chore:
metadependency is now less strict.
1.4.5 #
- feat: add
CustomCauseCheckto allow for custom checks that return a cause message on failure based on the input value.
1.4.4 #
- feat: pipes are now acanthis type and can be used to validate more complex structures.
- feat: date type accept now string, int and DateTime values.
1.4.3 #
- perf: improve performances again.
1.4.2 #
- chore: update dependencies
- perf: improved overall performances
1.4.1 #
- feat: add support for
literalvalues in objects, unions, tuples, list
1.4.0 #
- feat: add support for class schemas with
classSchema<I, T>() - feat: add support for instances validation with
instance<T>() - feat: add support for discriminated union with
union<T>()andvariant<T>()
1.3.2 #
- fix(#14): change list parse values to dynamic values #15 by francescovallone
1.3.1 #
- fix: wrong error messages for missing keys when parsing maps #13 by jesus-gueyp
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#patternvalidator. - feat: add
AcanthisType#elementTypeto 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
toJsonSchemamethod to generate JSON Schema from Acanthis Types. #10 by francescovallone - feat: add
tuplevalidator 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.extendmethod now does not override existing key-value pairs. #7 by francescovallone - refactor: codebase is now immutable. #6 by dickermoshe
1.0.2 #
- Add
differsFromNowto theAcanthisDatevalidator. - Add
doubleandbetweento theAcanthisNumbervalidator. - Add
time,url,cardandhexColorto theAcanthisStringvalidator.
1.0.1 #
- Add
lazyvalidator 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
partialvalidator to object validator. - Add more String validators.
- Rename
customChecktorefinein all validators. - Add
refineAsyncto all validators. - Add
pipeandAcanthisPipelineto allow for more complex validation and transformation processes.
0.1.3 #
0.1.2 #
- Add the
addFieldDependencyfunction to theobjectvalidator. - Add information about
addFieldDependencyin theobjectvalidator. - Remove the
Operationssection from the documentation.
0.1.1 #
Refactor #
- The function
jsonObjecthas been renamed asobject. - Add explicit information about the parse result object
AcanthisParseResult.
0.1.0 #
- Add the
nullablevalidator. - Add the
unionvalidator. - Add the
booleanvalidator. - Add transformation functions for all the validators except
nullable,booleanandunion. - 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_validatorpackage.
0.0.1 #
- Initial version.