Skip to content

Releases: acacode/swagger-typescript-api

1.7.2 release

29 Mar 18:29
55529b8
Compare
Choose a tag to compare

Fixes:

  • Critical bug with converting inline object into name of type for request body.
  • Fix bug when path parameters is not set but contains in endpoint url.
    path params bug 1
    path params bug 2

1.7.0 release

26 Mar 21:42
e56d604
Compare
Choose a tag to compare

Breaking Changes:

  • Remove title and version public Api class properties (moved it to Api class JSDOC)(fixes this issue)
    removed title and version properties
  • Move out all http client handlers/properties into HttpClient local class in module
    http-client-class1
    http-client-class2

Chore:

  • default value for SecurityDataType Api class generic type

1.6.3 release

26 Mar 11:10
6695576
Compare
Choose a tag to compare

Fixes:

  • Handling of nullable for $ref in OpenAPI 3.0 (issue)
    Plus based on this issue was fixed most other problems with using required and nullable properties

1.6.2 release

25 Mar 16:35
2fdcf73
Compare
Choose a tag to compare

Fixes:

  • Nullable not included in type definition (issue)

Internal:

  • Update swagger2openapi(6.0.0) dependency

1.6.1 release

24 Mar 10:41
Compare
Choose a tag to compare

Internal:

  • Update prettier(2.0.2), swagger2openapi(5.4.0) dependencies

1.6.0 release

14 Mar 20:57
721b35e
Compare
Choose a tag to compare

Features:

  • Improvenment in optional request params (request body, query params, path params)

Fixes:

  • Fix bug when path request param have the same name as query (#28)
  • Fix bug when path request param have the same name as params

Minor/Internal:

  • changed addQueryParams() method
  • up swagger2openapi dependency version to 5.3.4

1.5.0 release

10 Mar 00:48
Compare
Choose a tag to compare

Features:

  • Add prettier for beautify output typescript api module
  • Support additionalProperties type data
    additional properties

Fixes:

  • Fix problem with array type definitions without type property(#26)

1.4.1 release

02 Mar 11:33
Compare
Choose a tag to compare

Fixes:

  • Fix TS problem with addQueryParams Api class method (issue #22, thanks genaby)

Internal:

  • add prettier to the project

1.4.0 release

28 Feb 06:26
131225d
Compare
Choose a tag to compare

Breaking Changes:

  • Rename default typescript output api file name (prev api.ts, now Api.ts)

Features:

  • -d, --default-as-success option. Allows to use "default" status codes as success response type
  • -r, --responses option. Response declarations in request rescription
    This option adds comments of the possible responses from request
    responses comments
    Also typings for .catch() callback
    responses catch types
  • Improve response body type definitions
  • Types for bad responses

Changes:

  • [minor] fix jsdoc comments space
    right comments space

1.3.0 release

24 Feb 10:00
55638d5
Compare
Choose a tag to compare

Features:

  • Api module description from schema info
  • Generate API type declarations (CLI flag --route-types)
  • Ability to not generate clint API class (CLI flag --no-client)

Fixes:

  • Improve response body type definition