Skip to main content

smart_api_errors_parser 0.1.1 copy "smart_api_errors_parser: ^0.1.1" to clipboard
smart_api_errors_parser: ^0.1.1 copied to clipboard

Maps inconsistent API error payloads into typed exceptions, form errors, and localized messages.

Changelog #

0.1.1 #

  • Fixed exception classification so authoritative HTTP statuses take priority over field-shaped payloads.
  • Preserved cancelled Dio requests as DioException values.
  • Added safe fallback when localization returns an empty message.
  • Improved malformed-payload handling and string normalization.
  • Enhanced ApiErrorMessage.copyWith with nullable-field clearing and argument replacement.
  • Added regression coverage for status classification, cancellation, timeout, coded nested messages, malformed payloads, and localization fallback.
  • Expanded public API documentation and added CI validation.

0.1.0 #

  • Added API error normalization with automatic schema detection.
  • Added field-level, global, and localized error messages.
  • Added typed API exceptions and Dio integration.
  • Added custom response parser support.
  • Added mapper and interceptor test coverage.
  • Added complete runnable Flutter example app.
  • Added Android, iOS, web, macOS, Windows, and Linux runners.
  • Demonstrated nested-map and details-list responses in interactive form.
  • Demonstrated Dio interception, typed exceptions, localization, and field errors.
  • Added widget tests for validation-error and successful-registration flows.
  • Expanded package and example documentation.
0
likes
160
points
48
downloads

Documentation

API reference

Publisher

verified publisherpinz.dev

Weekly Downloads

Maps inconsistent API error payloads into typed exceptions, form errors, and localized messages.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

dio

More

Packages that depend on smart_api_errors_parser