Releases: acacode/swagger-typescript-api
Releases · acacode/swagger-typescript-api
1.11.0 release
Features:
- Improve the naming of model types (#65 issue)
1.10.0 release
Features:
--templates
CLI option. [feature request]
Provide custommustache
templates folder which allows to generate custom code (models, Api class, routes)--union-enums
CLI option. [feature request]
Allows to generate all enums as union types.
For example, schema part:will be converted into:"StringEnum": { "enum": ["String1", "String2", "String3", "String4"], "type": "string" }
export type StringEnum = "String1" | "String2" | "String3" | "String4";
1.8.4 release
Fixes:
- Multiple types for a property in Swagger 2 are not handled correctly (#55 issue)
1.8.3 release
Fixes:
- Generating invalid code in composed schema contexts (#51 issue)
components: schemas: Test: type: object allOf: - type: object properties: x: type: array items: type: string enum: - A-B - type: object properties: y: type: string
export type Test = XAB & { y?: string };
1.8.2 release
Fixes:
- Broken types for arrays of union types (issue)
1.8.1 release
1.8.0 release
Features:
- Partially support FormData body types
- Support to generate query params of nested query objects (Partial fix of this issue)
1.7.2 release
1.7.0 release
Breaking Changes:
- Remove
title
andversion
public Api class properties (moved it to Api class JSDOC)(fixes this issue)
- Move out all http client handlers/properties into
HttpClient
local class in module
Chore:
- default value for
SecurityDataType
Api class generic type
1.6.3 release
Fixes:
- Handling of nullable for $ref in OpenAPI 3.0 (issue)
Plus based on this issue was fixed most other problems with usingrequired
andnullable
properties