zmodel_to_dart_builder 1.1.1 copy "zmodel_to_dart_builder: ^1.1.1" to clipboard
zmodel_to_dart_builder: ^1.1.1 copied to clipboard

A Dart builder to generate DTO classes from ZModel schema files

1.1.1 #

  • Updated package metadata for the matching runtime release with nested orderBy support.

1.1.0 #

  • Generated static const [Model].metadata and [Model]Metadata classes for schema-level field metadata.
  • Generated typed metadata getters for scalar, enum, list, model, and model-list fields.
  • Updated tests and documentation for metadata-driven dynamic select, where, and orderBy construction.
  • Updated package metadata for the matching runtime release.

1.0.3 #

  • Updated package README examples to document ZModelOrderByBuilder.order(bool asc).
  • Updated package metadata for the matching runtime release.

1.0.2 #

  • Added generated [Model].validators and [Model]Validators classes for local validation from schema metadata.
  • Generated validators now expose required, type, enum, list, and model-relation rules, plus primary-key/unique metadata for app-managed checks.
  • Generated validators now include rules from @length, @startsWith, @endsWith, @contains, @email, @url, @datetime, @regex, @lt, @lte, @gt, and @gte.
  • Generated validators now include max-length rules for string fields declared with @db.VarChar(n) or @db.Char(n).
  • Fixed parsed field nullability so fields are required by default and become optional only with ?.

1.0.0 #

  • BREAKING CHANGE: Split the package into zmodel_to_dart_builder for generation and zmodel_to_dart_runtime for runtime contracts.
  • BREAKING CHANGE: Generated code now imports package:zmodel_to_dart_runtime/zmodel_to_dart_runtime.dart, so consuming apps must depend on the runtime package.
  • BREAKING CHANGE: Refactored generated RPC client APIs to use schema-scoped clients and model-scoped payload builders.
  • Left the original zmodel_to_dart pub package name for legacy 0.x releases.
  • Added generated payload builders for create, createMany, update, where, whereUnique, select, omit, include, orderBy, and distinct.
  • Removed the legacy generic RPC args and inline RPC generator helpers from the public builder surface.

0.5.0 #

  • Added generated [Model]Mutation payload classes for create and update data
  • Updated generated RPC mutation methods to accept sparse ZModelMutation payloads
  • Removed generated DTO and enum toJson methods; mutation serialization now belongs to ZModelMutation
  • Moved generated *ToJsonOrNull helpers from ZModel to ZModelMutation
  • Aligned generated RPC mutation methods with ZenStack HTTP verbs, including PUT for updates
  • Required where payloads for generated and manual bulk update/delete request helpers
  • Removed the generated and manual updateManyAndReturn RPC helper
  • Updated the README transport example for ZenStackRpcMethod.put

0.4.2 #

  • Improved generated RPC serialized-envelope detection for payloads wrapped under data or json
  • Added an ARCHITECTURE.md guide and linked it from the README

0.4.1 #

  • Aligned serialized RPC envelope test expectations with the current generator output

0.4.0 #

  • Expanded generated ZenStack RPC operations and helper payload types
  • Documented the broader generated RPC surface in the README

0.3.0 #

  • Refactored generated model scaffolding and serialization helpers
  • Added automatic unwrapping for superjson RPC responses before model parsing

0.2.2 #

  • Normalized generated RPC path templates to use single-quoted Dart strings

0.2.1 #

  • Refined generated ZenStack RPC client method signatures
  • Simplified generated null-aware map entries for RPC payloads
  • Expanded public API documentation
  • Updated README examples and package version references

0.2.0 #

  • Added generated ZenStack RPC client support
  • Added inline generated ZModel base with typed model resolution
  • Added RPC config options in zmodel_to_dart.yaml
  • Added Dio transport example to the README

0.1.0 #

  • Initial release
  • Added ZModel parser and DTO generator
  • Added build_runner builder support
  • Added standalone CLI support
0
likes
160
points
300
downloads

Documentation

API reference

Publisher

verified publisheraquarino.com.br

Weekly Downloads

A Dart builder to generate DTO classes from ZModel schema files

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

build, glob, path, yaml

More

Packages that depend on zmodel_to_dart_builder