Skip to content

Releases: flowup/api-client-generator

5.0.0-beta.1

29 Dec 16:48
Compare
Choose a tag to compare
5.0.0-beta.1 Pre-release
Pre-release

5.0.0-beta.1 (2020-12-29)

Features

  • api-client: parameters of operation prioritized over path default params (26b6b4a)

5.0.0-beta.0

22 Dec 15:55
Compare
Choose a tag to compare
5.0.0-beta.0 Pre-release
Pre-release

5.0.0-0 (2020-12-22)

⚠ BREAKING CHANGES

  • api-client: generator now ignores bodies for requests that should not send any body, only PUT, PATCH and POST should contain body and it is handled as optional
  • generator: if you import DefaultHttpOptions, HttpOptions or APIClientModuleConfig you need to adjust your imports to file ./types at the top of your "output" path

Features

  • api-client: body request based on the request type and the parameter (d0309b0)
  • api-client: method params property docs comments (7a1eddf)
  • api-client: methods params extracted to separate property in api client interface (53f3015), closes #91
  • api-client: observe support for HttpResponse and HttpEvent (cdf2c6d)
  • generator: descriptions generated as single/multi line docs comments (96a512d), closes #88
  • generator: https protocol preferred if mentioned in schemes (c7f7d6f)
  • generator: method parameters args object optional if all of the params are optional (9b77d74), closes #69
  • generator: operation summary in descriptions (b573759), closes #112
  • generator: option to skip guards (f4cc59f), closes #105
  • generator: type interfaces for API client moved to one separate file (f08ffb6)
  • generator: united file header (86fd135), closes #108
  • guard: check for null at enum guards (14320d5)
  • guard: typeof object check for dictionaries of any (4bf917a)
  • models: basic object properties as dictionary with key string and value of any (7233c2d)
  • models: description comments as docs comments before each property (8c81f6c)
  • models: interface properties holding dictionaries and array combinations (e3a33b6)
  • models: property name non unicode chars escaped (4dd4089)

Bug Fixes

  • api-client: form data not set if undefined (cd541a0)
  • generator: default response used if no success code specified (bc316f6)
  • generator: service interface imported directly from interface file instead of export index (d768fed)
  • guard: dictionaries as interface properties (58b9126)
  • guards: any type results in empty guard (83917a9), closes #98
  • guards: any used as type of array/object iteration items (ef7be58)

4.7.1

22 Dec 15:50
Compare
Choose a tag to compare

4.7.1 (2020-10-19)

Bug Fixes

  • cli: rethrow errors in catch to see full trace stack in console (943f7d2)
  • enums: x-enumNames specified integers and description with new lines (6a98b82)

4.7.0

22 Dec 15:49
Compare
Choose a tag to compare

4.7.0 (2020-07-03)

Features

  • angular 10 module with providers compatibility (7f69cc8)

4.6.2

24 Jan 13:20
Compare
Choose a tag to compare

4.6.2 (2020-01-24)

Bug Fixes

  • generator: object instad of { [key: string]: any } (0c29141)
  • guards: array nested in additionalProperties (4f23f92)
  • guards: method response basic type guards used instead of custom function for primitive types (96ce207)
  • models: object instead of any in case of nested properties (e8b7667)
  • service: object instead of any in case of nested properties in method parameter (4443ac3)
  • service: object instead of any in case of nested properties in response (277ee3f)

4.6.1

23 Jan 08:44
Compare
Choose a tag to compare

4.6.1 (2020-01-23)

Bug Fixes

  • generator: toCamelCase method removes duplicate words (abe073d)
  • guards: array item typed as unknown for the guard iteration (da654f7)
  • guards: circular dependency (ecd1080)
  • guards: escaped property names accessed via brackets (1dbfe3a)
  • guards: guarded service response type as explicit any (785f022)
  • guards: nested array types (89da76c)
  • guards: object array types (30113fe)
  • guards: objects with index signature as additional properties (a6ef06c)
  • guards: union type string or enum with one value only (ec040c4)

4.6.0

23 Jan 08:44
Compare
Choose a tag to compare

4.6.0 (2020-01-16)

Bug Fixes

  • guard: circular dependencies (eae41be)
  • guards: object guard comparing typeof 'object' (ffc8560)

Features

  • method-params: union types determined for enum like union strings and numbers (324a95a)
  • models: union types for properties of enum like union strings and numbers (0023555)

4.3.0

28 Jun 15:50
Compare
Choose a tag to compare

Bug Fixes

  • api-client: support for blob response type (d14ef9d), closes #77
  • methods: recognizing return type if TS primitive or complex type (8ee08e2)

Build System

Features

  • api-client: generating response for "lowest" of HTML success codes (72a7b14)
  • api-client: void return type for methods with empty schema (f1977eb)
  • enums: custom enum key names via custom x-enumNames property (9cf1c8f)
  • form-data: send form parameters as multi part form data (c18c296), closes #78

Tests

  • jest instead of jasmine (0836c0b)
  • angular-project: jest instead of jasmine and karma (2de02e7)
  • angular-project: removed jasmine and karma deps (784b181)
  • angular-project: updated deps (c4e8b97)

4.2.0

11 Jan 16:17
Compare
Choose a tag to compare

Features

  • models: properties are optional as default, required stated explicitly (04111d9)

4.1.0

11 Jan 16:16
Compare
Choose a tag to compare

Bug Fixes

  • api-client: method parameters description and required flag (8e02cc1)
  • enum: substitution of disallowed characters in key string (7214f2b), closes #74
  • generator: Expose error from spec validation (ebb74c7)
  • license: redundant lt/gt characters removed (3b5f8d9)

Features

  • model: objects generated as key-value maps (b775b44)