ack 0.2.0-beta.1
ack: ^0.2.0-beta.1 copied to clipboard
A simple validation library for Dart
0.2.0-beta.1 - 2025-05-03 #
- See release notes for details.
0.2.0 #
- Bump "ack" to 0.2.0 with improved SchemaModel API and enhanced string validation
0.2.0 #
Breaking Changes #
- SchemaModel API: Completely redesigned the SchemaModel API for a more intuitive and streamlined experience
- Changed constructor parameter from
Map<String, dynamic>toObject?for better flexibility - Added automatic validation during construction
- Added
isValidgetter andgetErrors()method for easier error handling - Added abstract
getSchema()method to define the schema - Removed
parse(),fromValidated(),validateMap(),validate(),createFromMap(), andinitialize()methods
- Changed constructor parameter from
Improvements #
- Improved error handling with more detailed error messages
- Better type safety with
Object?instead ofdynamic - Simplified API with fewer methods and more intuitive usage
- String Validation: Enhanced string validation with improved methods
- Changed
matches()to validate full string patterns (anchored with ^ and $) - Added
contains()method for partial string matching
- Changed
0.1.2 #
- Improved error messages
0.1.1 #
- Added deprecations
0.1.0 #
- Error and exception improvements
- Reworked validation and constraint workflows
- Improved testing
0.0.2 #
- Better JSON response parsing for OpenApiSchemaConverter
0.0.1 #
- Initial version.