Releases: acacode/swagger-typescript-api
Releases · acacode/swagger-typescript-api
6.4.0 Release
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
- Bug with number enums which have
x-enumNames
- Problem with not existing
title
property ininfo
Minor:
- Improve description for complex types
- Improve description in single api file
6.3.0 Release
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 hereonFormatTypeName(usageTypeName, rawTypeName)
hook. Allow to format data contract names as you want.
Internal:
- rename and split
checkAndRenameModelName
->formatModelName
,fixModelName
6.2.1 Release
6.2.0 Release
Features:
--module-name-first-tag
option. Splits routes based on the first tag (thanks @jnpoyser)
6.1.2 Release (bugfix)
Fixes (critical):
- Problems with using both
--axios
and--modular
options together (TS,organizeImports
crashed the codegeneration)
6.1.1 Release (bugfix)
Fixes:
- Problems with
--axios
option- ignoring
path
,format
,type
payload properties inrequest()
method ofHttpClient
- ignoring
- Missing
format
property for requests in--modular
option
6.1.0 Release
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
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 returnPromise<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)
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 usesincludeFile
on a template file that is not overridden