Skip to content

Releases: ifroz/openapi-to-typescript

v4.0.0

30 Jun 07:01
2f9ecb7

Choose a tag to compare

4.0.0 (2019-06-30)

Bug Fixes

  • cli: Remove stores from cli code (2e1c256)
  • cli.spec.ts: Do not rely on yarn due to CI behavior differences (c3e28e9)
  • cli.ts: Pass apiSchema to FetchClientFormatter in order to generate valid API_URL (264af96)

Documentation

  • README.md: Update docs to the new usage (dc2909b)

Features

  • cli: Make the generate command default (568ed7a)
  • cli.ts|fetch.ts: Make fetch client server url customizable (464f12a)

BREAKING CHANGES

  • README.md: GenerateTypings now returns Promise

v3.2.1

06 Jun 08:34
65ddec9

Choose a tag to compare

3.2.1 (2019-06-06)

Bug Fixes

  • package: update @types/yargs to version 13.0.0 (8fa0998)

v3.2.0

02 Mar 17:45
01ff999

Choose a tag to compare

3.2.0 (2019-03-02)

Bug Fixes

  • cli: Enforce default input (a236f27)

Features

  • formatters/fetch: Handle parameters in path (a593c39)
  • formatters/fetch: Only use body when defined (91bed6b)

v3.1.0

28 Feb 17:02
f4ed85a

Choose a tag to compare

3.1.0 (2019-02-28)

Features

  • typings: Use proper typing from another package (f6fa702)

v3.0.0

27 Feb 19:51
c44f298

Choose a tag to compare

3.0.0 (2019-02-27)

Bug Fixes

  • cli: Fix broken argv logic (2c3fe70)
  • formatters/fetch: Fix reverse logicc (9d83ef2)
  • formatters/request: Handle requestBody JSON schema.$ref as an alias (3560d55)
  • formatters/request.ts: Generate empty request objects so that we can rely on their presence whe (af168d1)

Features

  • 🎸 formatters/fetch (466eba8)
  • cli: Add yargs cli to output the generated code to file (94bd227)
  • formatters/fetch: Generate real fetch(url, options) signature (798c1b1)
  • formatters/fetch: Handle query parameters in the generated actions (00a852a)
  • formatters/fetch: Naive typings of a generic API client (b8ac739)
  • GenerateTypings: Accept options as 2nd argument, with operationFormatters in it (c1b6758)
  • GenerateTypings: Generate compilable client output by using renderBoilerplate and renderAction (8b1c781)

BREAKING CHANGES

  • GenerateTypings: GenerateTypings now returns Promise<{ typeStore, clientStore }>

v2.1.1

24 Feb 20:58

Choose a tag to compare

2.1.1 (2019-02-24)

Bug Fixes

  • package: Expose files dist/**/*.js (1551899)

v2.1.0

24 Feb 20:49
9bb8bae

Choose a tag to compare

2.1.0 (2019-02-24)

Bug Fixes

  • compile.ts/getSchemaName: Resolve integer as number type (13e29e2)
  • GenerateTypings: No longer pollute input OpenAPISchema object (1fea57b)

Features

  • Store: Throw an error when an existing type definition is about to be overwritten (27efccb)

v2.0.0

24 Feb 18:42
6c0db67

Choose a tag to compare

2.0.0 (2019-02-24)

Features

  • GenerateTypings: Return the whole store and use toString() in the tests (6c04ab2)

BREAKING CHANGES

  • GenerateTypings: You get a Store object, you need to call .toString() explicitly to get the
    old behavior

v1.0.0

24 Feb 12:50

Choose a tag to compare

1.0.0 (2019-02-24)

Code Refactoring

  • Expose entry point as GenerateTypings: GenerateTypings is a better name. (0122c60)

Features

  • compile.ts: Add getSchemaName to determine property types in route.ts (84419b9)
  • compile.ts: Use json-schema-to-typescript to generate type from components.schemas elements (0179cdd)
  • formatters.ts: Generate OperationFallback type for default responses (5dc547c)
  • formatters.ts: Handle multiple HTTP response codes (e0ebb99)
  • formatters.ts: Handle the lowest HTTP status code with the default typeName() (7e1da57)
  • index.ts: Generate OperationResult types (a3a84bf)
  • index.ts: Generate typings for components.schemas (512744d)
  • refs.ts: Add InternalRefRewriter (7649ae9)
  • route.ts: Default route name to camelCase(${method} ${pathName}) given no operationId (c8374d6)
  • route.ts: Request parameters type definition (b59dacd)

BREAKING CHANGES

  • Expose entry point as GenerateTypings: Renamed GenerateTypes to GenerateTypings.