flap 0.0.4 copy "flap: ^0.0.4" to clipboard
flap: ^0.0.4 copied to clipboard

OpenAPI → Dart/Flutter client generator for 3.0, 3.1 and Swagger 2.0. Generates Freezed + json_serializable clients, no Java required.

Changelog #

All notable changes to this project will be documented in this file.

0.0.1 #

  • Initial pub.dev release.
  • Supports OpenAPI 3.0, OpenAPI 3.1, and Swagger 2.0 spec formats.
  • Generates @freezed Dart/Flutter client libraries from any valid spec.
  • Two HTTP client backends: package:dio (default) and package:http.
  • Sound null-safe output (null_safe/) and legacy null-unsafe output (null_unsafe/) generated side-by-side.
  • Full security scheme support: apiKey (header/query/cookie), HTTP bearer, HTTP basic, OAuth 2.0, OpenID Connect.
  • PATCH tri-state semantics via Optional<T?> for nullable: true + optional fields.
  • Typed Dart 3 named-record return types for operations with declared response headers.
  • Discriminated unions (oneOf + discriminator) → @Freezed sealed classes.
  • Untagged unions (anyOf / oneOf without discriminator) → try-each deserialization.
  • allOf inheritance detection with Schema.extends surfaced in the IR.
  • Recursive schema detection and is_recursive flag on Field.
  • String and integer enum: values with unknown sentinel.
  • default: field values emitted as @Default(...) Freezed annotations.
  • format: date-timeDateTime, format: float/doubledouble.
  • multipart/form-data request bodies.
  • Multiple servers: → constants class (abstract final class FooClientUrls).
  • x-* vendor extensions captured on every IR node.
  • --type-map / --import-map flags to replace spec schemas with hand-written types.
  • --template-dir flag for Jinja2 template overrides.
  • Incremental builds with lockfile per output mode + backend.
  • Pre-generation validation accumulates all errors and reports them together.

0.0.2 #

  • Simple version update

0.0.3 #

  • Fixing pub points

0.0.4 #

  • Fixing pub points
2
likes
160
points
35
downloads
screenshot

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

OpenAPI → Dart/Flutter client generator for 3.0, 3.1 and Swagger 2.0. Generates Freezed + json_serializable clients, no Java required.

Repository (GitHub)
View/report issues

Topics

#code-generation #openapi #flutter #dart #rest-api

License

MIT (license)

Dependencies

archive, crypto, http, path

More

Packages that depend on flap