smart_api_errors_parser 0.1.1
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
DioExceptionvalues. - Added safe fallback when localization returns an empty message.
- Improved malformed-payload handling and string normalization.
- Enhanced
ApiErrorMessage.copyWithwith 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.