flap 0.0.4
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
@freezedDart/Flutter client libraries from any valid spec. - Two HTTP client backends:
package:dio(default) andpackage: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?>fornullable: true+ optional fields. - Typed Dart 3 named-record return types for operations with declared response headers.
- Discriminated unions (
oneOf+discriminator) →@Freezedsealed classes. - Untagged unions (
anyOf/oneOfwithout discriminator) → try-each deserialization. allOfinheritance detection withSchema.extendssurfaced in the IR.- Recursive schema detection and
is_recursiveflag onField. - String and integer
enum:values withunknownsentinel. default:field values emitted as@Default(...)Freezed annotations.format: date-time→DateTime,format: float/double→double.multipart/form-datarequest bodies.- Multiple
servers:→ constants class (abstract final class FooClientUrls). x-*vendor extensions captured on every IR node.--type-map/--import-mapflags to replace spec schemas with hand-written types.--template-dirflag 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
