Releases: acacode/swagger-typescript-api
Releases · acacode/swagger-typescript-api
7.0.0 Release
BREAKING_CHANGES:
- format
namespace
name in--route-types
as camelCase with upper first capitalized letter
foo_bar
->FooBar
Fixes:
- Incorrect working the
--route-types
option with--modular
option (route types should be splitted on files) - Fix critical bug linked with enums with boolean type (thanks @haedaal)
Features:
- Ability to return
false
inonCreateRoute
hook, it allow to ignore route - Add output util functions
createFile: (params: {
path: string;
fileName: string;
content: string;
withPrefix?: boolean;
}) => void;
renderTemplate: (
templateContent: string,
data: Record<string, unknown>,
etaOptions?: import("eta/dist/types/config").PartialConfig
) => string;
getTemplate: (params: {
fileName?: string;
name?: string;
path?: string;
}) => string
formatTSContent: (content: string) => string;
// ...
generateApi({ /* ... */ }).then(({ createFile, renderTemplate, getTemplate }) => {
// do something
})
6.4.2 Release (bugfix)
Fixes:
- Bug with missing
name
property in in-path requests parameters - Problem with usage
--route-types
with--modular
option (mising import data contracts)
6.4.1 Release
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