ack 1.0.0-beta.7 copy "ack: ^1.0.0-beta.7" to clipboard
ack: ^1.0.0-beta.7 copied to clipboard

A simple validation library for Dart

1.0.0-beta.7 #

Features #

  • Enum and literal schemas: Add Ack.enumString(), Ack.literal(), and Ack.enumValues() as top-level constructors for enum and literal schemas (#73).
  • Schema result mapping: Add SchemaResult.map() for transforming validated values.

Deprecations #

  • StringSchema extensions: StringSchema.literal() and .enumString() are deprecated. Use Ack.literal() and Ack.enumString() instead (#74).

1.0.0-beta.6 #

Features #

  • Discriminated unions: Enforce Map-returning child schemas in discriminated unions (#67).
  • Schema mapping API: Add AckSchema.parseAs and AckSchema.safeParseAs for validated-value mapping with consistent SchemaTransformError handling.

Improvements #

  • Schemas: Centralize null/default handling and extract ObjectSchema helpers (#65).

Bug Fixes #

  • Schemas: Fixes to schema correctness including transformed schema defaults and list unique items constraint (#50).

1.0.0-beta.5 - 2026-01-14 #

Features #

  • Equality: Implement value-based equality for schemas and constraints (#63). All schema and constraint classes now properly implement == and hashCode for structural comparison.

Improvements #

  • Dependencies: Updated meta and test dependencies to latest versions (#56).

1.0.0-beta.4 - 2025-12-29 #

Breaking Changes #

  • WellKnownFormat: Reduced to 7 core formats (email, uri, uuid, date, dateTime, ipv4, ipv6). Removed formats: hostname, idn_email, idn_hostname, uri_reference, uri_template, iri, iri_reference, time, duration, int32, int64, float, double, json_pointer, relative_json_pointer, regex, enum_, byte, binary. Custom format strings are still supported via the format property.
  • withDescription deprecated: Use describe() instead for setting schema descriptions.

Bug Fixes #

  • JsonSchema.toJson: Now correctly adds null branch to anyOf/oneOf compositions when nullable: true, producing valid JSON Schema Draft-07 format.

Improvements #

  • DRY refactoring: Consolidated duplicate primitive schema parsers into one.
  • Hardened schema type handling: Improved map validation and schema type handling.
  • Consolidated JSON schema utilities: Reduced duplication across JSON schema utilities.

1.0.0-beta.3 - 2025-10-27 #

1.0.0-beta.2 - 2025-10-09 #

1.0.0-beta.1 - 2025-10-06 #

55
likes
135
points
990
downloads

Publisher

verified publisherleoafarias.com

Weekly Downloads

A simple validation library for Dart

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

collection, meta

More

Packages that depend on ack