ack 0.2.0-beta.1 copy "ack: ^0.2.0-beta.1" to clipboard
ack: ^0.2.0-beta.1 copied to clipboard

A simple validation library for Dart

0.2.0-beta.1 - 2025-05-03 #

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> to Object? for better flexibility
    • Added automatic validation during construction
    • Added isValid getter and getErrors() method for easier error handling
    • Added abstract getSchema() method to define the schema
    • Removed parse(), fromValidated(), validateMap(), validate(), createFromMap(), and initialize() methods

Improvements #

  • Improved error handling with more detailed error messages
  • Better type safety with Object? instead of dynamic
  • 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

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.
55
likes
0
points
223
downloads

Publisher

verified publisherleoafarias.com

Weekly Downloads

A simple validation library for Dart

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

meta

More

Packages that depend on ack