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

Runtime contracts and helpers for Dart code generated from ZModel schema files

1.1.1 #

  • Added support for nested field orderBy via ZMOrderByEntry.path() constructor.
  • Fixed ZMOrderByEntry.order() method to properly handle nested field paths and generate correct nested JSON structure.
  • Updated tests for nested orderBy construction.

1.1.0 #

  • Added static generated model metadata contracts: ZModelMetadata, ZModelFieldMetadata, and typed field metadata classes.
  • Added metadata-generated payload entry objects: ZMSelectEntry, ZMOmitEntry, ZMIncludeEntry, ZMWhereEntry, and ZMOrderByEntry.
  • Added map payload helpers to apply metadata entries with deep merging for dynamic select, omit, include, and where construction.
  • Updated generated-code examples and documentation for metadata-driven dynamic query building.

1.0.3 #

  • Added ZModelOrderByBuilder.order(bool asc) for dynamic ascending or descending order selection.
  • Updated README references and examples for the new order helper.

1.0.2 #

  • Added structured validation contracts: ZValidationError, ZValidationResult, ZFieldValidator, ZModelValidator, and ZValidationMessages.
  • Added a global validation message resolver with local per-call override support.
  • Added composable validator overrides for form-specific rules, including required(), optional(), withRules(), prependRules(), and replaceRules().
  • Added validation rules for min/max length, string prefixes/suffixes/contains, email, URL, ISO datetime strings, regex patterns, and numeric comparisons.
  • Added a const constructor to the SuperJson serialization helper.
  • Renamed the generated blog schema example entrypoint to example/main.dart.
  • Updated runtime tests and README references for the renamed example.

1.0.0 #

  • Initial release of the standalone runtime package extracted from the legacy zmodel_to_dart package.
  • Published as zmodel_to_dart_runtime so the original zmodel_to_dart package can remain available as the 0.x legacy package.
  • Added runtime model contracts, typed field implementations, enum helpers, payload contracts, where builders, RPC transport contracts, model-scoped RPC helpers, and SuperJson.
  • Generated code now imports this package through package:zmodel_to_dart_runtime/zmodel_to_dart_runtime.dart.
0
likes
160
points
324
downloads

Documentation

API reference

Publisher

verified publisheraquarino.com.br

Weekly Downloads

Runtime contracts and helpers for Dart code generated from ZModel schema files

Repository (GitHub)
View/report issues

License

MIT (license)

More

Packages that depend on zmodel_to_dart_runtime