Skip to content

Releases: acacode/swagger-typescript-api

1.11.0 release

13 Jul 22:17
7a23584
Compare
Choose a tag to compare

Features:

  • Improve the naming of model types (#65 issue)

1.10.0 release

26 Jun 22:00
4b0ace2
Compare
Choose a tag to compare

Features:

  • --templates CLI option. [feature request]
    Provide custom mustache 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:
    "StringEnum": {
      "enum": ["String1", "String2", "String3", "String4"],
      "type": "string"
    }
    
    will be converted into:
    export type StringEnum = "String1" | "String2" | "String3" | "String4";

1.8.4 release

17 Jun 23:12
8db5766
Compare
Choose a tag to compare

Fixes:

  • Multiple types for a property in Swagger 2 are not handled correctly (#55 issue)

1.8.3 release

14 Jun 22:56
dcb2dd2
Compare
Choose a tag to compare

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

29 May 15:12
acc770b
Compare
Choose a tag to compare

Fixes:

  • Broken types for arrays of union types (issue)

1.8.1 release

25 May 23:03
bcb095a
Compare
Choose a tag to compare

Fixes:

  • form data request body (request body content multipart/form-data)

Minor:

  • inline comments of the data contract type properties
    one line comments
  • remove Array<T> type usage (now the more simple type T[])

1.8.0 release

22 May 10:07
974e761
Compare
Choose a tag to compare

Features:

  • Partially support FormData body types
  • Support to generate query params of nested query objects (Partial fix of this issue)

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