api_corrector 0.0.2 copy "api_corrector: ^0.0.2" to clipboard
api_corrector: ^0.0.2 copied to clipboard

A lightweight Flutter utility for validating and correcting API responses against defined schemas.

api_corrector #

Runtime API response validator for Dart & Flutter. Protects apps from malformed or unexpected JSON—even with HTTP 200. A small, lightweight Dart / Flutter package that helps you safely validate API JSON responses at runtime — before they crash your app.

It focuses on what your app expects from the API, not just HTTP status codes.

Why use api_corrector? #

Because APIs don’t always behave 😅 Even when the server responds with HTTP 200 OK, the JSON might:

  • contain an error payload
  • be missing required fields
  • return unexpected data types
  • partially break due to backend issues This package lets you clearly define what a “valid” response looks like and verifies that the API response actually matches it before your UI touches the data.

If the response doesn’t match your expectations, it fails early and safely.

Clone the repository #

git clone https://github.com/zenithstar1/api_corrector.git

2
likes
140
points
38
downloads

Publisher

unverified uploader

Weekly Downloads

A lightweight Flutter utility for validating and correcting API responses against defined schemas.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on api_corrector