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

Native-Dart, zero-Java OpenAPI 3.x → Dart code generator. Generates idiomatic Dio-based model classes and API client services via build_runner. No JVM. No Mustache. Generated code looks hand-written.

Changelog #

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

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased] #

0.1.1 - 2026-06-09 #

Fixed #

  • hashCode generation: use Object.hashAll when a model has more than 20 fields — Object.hash accepts at most 20 positional arguments
  • _isGeneratedType: anonymous inline schemas (name == null) no longer treated as generated types, preventing spurious import references in generated code
  • Enum path parameters: serialize via .toJson().toString() before Uri.encodeComponent to emit the correct wire value
  • Parser: empty schema: {} in request body or response content now yields null instead of a broken anonymous schema, so the generator correctly emits Future<void>

0.1.0 - 2026-05-05 #

Added #

  • Initial release — package scaffold (full generator implementation added in v0.1.0 final).
0
likes
140
points
80
downloads

Documentation

API reference

Publisher

verified publisherangelocassano.it

Weekly Downloads

Native-Dart, zero-Java OpenAPI 3.x → Dart code generator. Generates idiomatic Dio-based model classes and API client services via build_runner. No JVM. No Mustache. Generated code looks hand-written.

Homepage
Repository (GitHub)
View/report issues

Topics

#openapi #code-generation #dart #build-runner

License

MIT (license)

Dependencies

analyzer, build, code_builder, crypto, dart_openapi_generator_annotations, dart_style, http, meta, path, pub_semver, source_gen, source_span, yaml

More

Packages that depend on dart_openapi_generator