tonik_generate 0.4.0 copy "tonik_generate: ^0.4.0" to clipboard
tonik_generate: ^0.4.0 copied to clipboard

A code generation package for Tonik.

0.4.0 #

  • FIX: ignroe warnings in generated code.
  • FIX: inline models with ref siblings where not generated in all cases.
  • FIX: don’t add trailing ? if there are no query parameters.
  • FIX: handle boolean schemas in lists correclty.
  • FIX: proper handling of lists with type arrays.
  • FIX: changelog link missing for tonik.
  • FEAT: server templating.
  • FEAT: improved encoding detection with OAS 3.1.
  • FEAT: support defs for OAS 3.1.
  • FEAT: ref sibling handling for 3.1.
  • FEAT: better support for boolean models.
  • FEAT: basic handling of boolean schemas.
  • FEAT: support mutualTLS for 3.1.
  • FEAT: better OAS 3 doc strings.
  • FEAT: support description overrides for 3.1.
  • FEAT: additional metadata fields for 3.1.

0.3.0 #

  • FIX: remove lints as dependency.
  • FEAT: better support for nullable schemas.

0.2.1 #

0.2.0 #

Note: This release has breaking changes.

  • FEAT: binary data type.
  • FEAT: improved response handling for text and binary.
  • FEAT: binary and text bodies in responses.
  • FEAT: improved copyWith allowing to set properties to null.
  • FEAT: various improvemts for configuration handling.
  • FEAT: custom content types via configuration.
  • FEAT: fallback cases for enums.
  • FEAT: config and name overrides.
  • BREAKING FEAT: require dart 3.10.0 or later.

0.1.0 #

  • REFACTOR: cleanup parameter generation.
  • REFACTOR: improve compile time checks for encoding of composite types in any of.
  • REFACTOR: matrix parameter.
  • REFACTOR: unified parameter encoding for classes.
  • FIX: list handling for allOf toJson.
  • FIX: update range checks for status codes.
  • FIX(parse_generator): add null assertion to status in range check.
  • FIX: toLabel list encoding.
  • FIX: form encoding.
  • FIX: various fixes for path parameter encodign.
  • FIX: stabilize names by sorting models.
  • FIX: lists in parameters with double encoding.
  • FIX: improved list handling for parameter encoding.
  • FIX: don’t double encode paths parameters.
  • FIX: check runtime encoding shape in classes.
  • FIX: anyOf currentEncodingShape wrongly reports mixed encoding.
  • FIX: nested oneOf parameter encodign.
  • FIX: simple encoding with invalid models and without bodies.
  • FEAT: allOf toMatrix.
  • FEAT: toMatrix for anyOf.
  • FEAT: improved list handing for matrix encoding.
  • FEAT: parameter properteis for anyOf.
  • FEAT: add allOf parameterEncoding.
  • FEAT: imporved matrix encoding for paths.
  • FEAT: parse deprecated fields for models.
  • FEAT: toMatrix for enums.
  • FEAT: matrix encoding for classes.
  • FEAT: more doc string generation.
  • FEAT: produce less runtime checks if composite models are not dynamic in encoding.
  • FEAT: anyOf and allOf toLabel.
  • FEAT: improved deep object query parameter encoding.
  • FEAT: toLabel for oneOf.
  • FEAT: add toLabel for classes.
  • FEAT: add toLabel for enums.
  • FEAT: annotate more entities with deprecated.
  • FEAT: parameter properteis for oneOf.

0.0.9 #

  • FEAT: form encoding and decoding for enums, classes, oneOf and composition types.
  • FEAT: discriminator support for oneOf simple encoding.
  • FEAT: improved simple encoding.
  • FEAT: security information in generated documentation.
  • FEAT: improved name generation.
  • FIX: oneOf handling and tests.
  • FIX: double encoded values for simple and form encoding.
  • FIX: runtime check for current encoding type.

0.0.8 #

  • REFACTOR: use simple encoding extension for request headers.
  • REFACTOR: remove usage of simple encoder for path parameters.
  • FIX: add missing simple properteis for one of classes.
  • FIX: path parameter encoding when only separated by a slash.
  • FIX: improved property json handling for one of models.
  • FEAT: toSimple for any of classes.
  • FEAT: simple properties for any of models.
  • FEAT: generate any of models.
  • FEAT: oneOf fromSimple / toSimple.
  • FEAT: to simple for classes.
  • FEAT: toSimple for enums.
  • FEAT: improved simple en- and decoding for all of models.
  • FEAT: fromSimple, toSimple for all of.
  • FEAT: property normailization for all of models.
  • FEAT: Uri property encoding and decoding.
  • FEAT: time zone aware encoding of date time objects.
  • FEAT: drop api prefix from generated server class.

0.0.6 #

  • FIX: proper handle dates.
  • FIX: priority for exlict defined names of schemas.
  • FIX: prio for explicitly defined names.
  • FIX: proper hash code for classes with >20 properties.

0.0.5 #

0.0.4 #

  • FEAT: generate all of classes.

0.0.3 #

  • FIX: honor paths in base urls.
  • FIX: improved handling for multi-line document descriptions.

0.0.2 #

  • REFACTOR: reorg folders.
  • REFACTOR: cleanup.
  • REFACTOR: cleanup code duplication.
  • REFACTOR: throw JsonDecodingException instead of ArgumentError.
  • REFACTOR: don’t create empty query params method.
  • REFACTOR: split tests, reduce code duplicaiton.
  • REFACTOR: extract hash code method generation.
  • REFACTOR: extract common equal method generation.
  • FIX: broken test assumption.
  • FIX: correct class names for multi content types response parsing.
  • FIX: handling of aliases in response parsing.
  • FIX: gneric type of response added.
  • FIX: proper handling in fromJson for nullable or non-required fields.
  • FIX: allow properties with names conflicting dart class methods.
  • FIX: options don’t need body if there is only a single body.
  • FIX: pass body to options method.
  • FIX: catch any thrown objects.
  • FIX: not-scoped typdef for alias request bodies.
  • FIX: broken test.
  • FIX: missing inline reponses.
  • FIX: reduce warnings in generated code.
  • FEAT: set accept headers.
  • FEAT: generate server class.
  • FEAT: fromSimple for classes.
  • FEAT: generate fromSimple factory for enums.
  • FEAT: improve response wrapper naming.
  • FEAT: equals and hash for response wrappers.
  • FEAT: doc strings for api clients.
  • FEAT: complex responses for response wrappers.
  • FEAT: response wrapper file writing.
  • FEAT: basic response wrapper generation.
  • FEAT: improved api client generation.
  • FEAT: handle classes with json or map properties names.
  • FEAT: provide request data.
  • FEAT: supply context when decoring headers.
  • FEAT: basic api client generation.
  • FEAT: improved name creation for multi-request bodies.
  • FEAT: content-type for requests.
  • FEAT: supply context when simple decoding models.
  • FEAT: add request body in core.
  • FEAT: body parameter for operations.
  • FEAT: allow context for decoding exceptions.
  • FEAT: do not generate dead code.
  • FEAT: improved response parsing.
  • FEAT: use server for api clients.
  • FEAT: sealed classes for multi-body responses.
  • FEAT: response parsing first part.
  • FEAT: add json decoding of more types to util.
  • FEAT: improved json decoding.
  • FEAT: improve verbosity for naming.
  • FEAT: response parsing in call method.
  • FEAT: response generator for single body responses.
  • FEAT: improved response name genreation.
  • FEAT: allow multiple bodies in responses.
  • FEAT: generate request body sealed classes.
  • FEAT: equals and hash code for one of classes.
  • FEAT: proper return types for call method of operations.
  • FEAT: improved request and response naming.
  • FEAT: support for response aliases.
  • FEAT: handle parameters for api clients.

0.0.1 #

  • Initial version.