Skip to content

Releases: acacode/swagger-typescript-api

6.4.0 Release

05 Mar 23:39
a975971
Compare
Choose a tag to compare

Features:

  • onFormatRouteName(routeInfo: RawRouteInfo, templateRouteName: string) hook. Allows to format route name, as you like :)

Fixes:

  • Bug with wrong complex types (anyOf, oneOf, allOf) when some child schema contains only description
    example
  • Bug with number enums which have x-enumNames
  • Problem with not existing title property in info

Minor:

  • Improve description for complex types
  • Improve description in single api file

6.3.0 Release

04 Mar 21:55
7d38f20
Compare
Choose a tag to compare

Features:

  • --type-suffix option. Allows to set suffix for data contract name. (issue #191, thanks @the-ult)
  • --type-prefix option. Allows to set prefix for data contract name. (issue #191, thanks @the-ult)
    Examples here
  • onFormatTypeName(usageTypeName, rawTypeName) hook. Allow to format data contract names as you want.

Internal:

  • rename and split checkAndRenameModelName -> formatModelName, fixModelName

6.2.1 Release

04 Mar 09:13
c9753aa
Compare
Choose a tag to compare

Fixes:

  • missing generateUnionEnums?: boolean; in index.d.ts file (thanks @artsaban)
  • missing default params to axios http client (--axios) (issue #192, thanks @Nihisil)

6.2.0 Release

03 Mar 15:12
93ec745
Compare
Choose a tag to compare

Features:

  • --module-name-first-tag option. Splits routes based on the first tag (thanks @jnpoyser)

6.1.2 Release (bugfix)

02 Mar 19:27
49666e8
Compare
Choose a tag to compare

Fixes (critical):

  • Problems with using both --axios and --modular options together (TS, organizeImports crashed the codegeneration)

6.1.1 Release (bugfix)

02 Mar 18:56
b5d3d50
Compare
Choose a tag to compare

Fixes:

  • Problems with --axios option
    • ignoring path, format, type payload properties in request() method of HttpClient
  • Missing format property for requests in --modular option

6.1.0 Release

02 Mar 11:04
9621fed
Compare
Choose a tag to compare

Features:

  • --silent option. Output only errors to console (default: false)

Fixes:

  • Bug with kebab-case path params (issue #184, thanks @Mr-sgreen)
  • Typings for --js option

6.0.0 Release

01 Mar 21:18
Compare
Choose a tag to compare

BREAKING_CHANGES:

  • Ability to override only one template (issue #166, thanks @Nihisil)
  • removed TPromise type for --responses options (perf. problem, issue #182, thanks @mixalbl4-127)
  • breaking changes in http-client.eta
  • securityWorker now can return Promise<RequestParams | void> | RequestParams | void

Features:

  • template path prefixes @base, @default, @modular (using in Eta templates, includeFile(), see README.md)
  • --axios option for axios http client (issue #142, thanks @msklvsk, @mixalbl4-127 )

5.1.7 Release (Bugfix)

24 Feb 01:33
f6d1c67
Compare
Choose a tag to compare

Fixes:

  • Do not fail if template file does not exist (issue #166, thanks @armsnyder )
    Caveat: With this fix it will still error if the overridden template uses includeFile on a template file that is not overridden

5.1.6 Release (Bugfix)

19 Feb 18:00
0efc754
Compare
Choose a tag to compare

Fixes:

  • The contentFormatter for ContentType:Json does not correctly format strings (issue #176, thanks @Styn)