Skip to content

Releases: Himenon/openapi-typescript-code-generator

@himenon/[email protected]

20 Mar 13:46
Compare
Choose a tag to compare

New Features

Templates.FunctionalApiClient 🎉🎉🎉

import * as Templates from "@himenon/openapi-typescript-code-generator/templates";

const apiClientGeneratorTemplate: Types.CodeGenerator.CustomGenerator<Templates.FunctionalApiClient.Option> = {
  generator: Templates.FunctionalApiClient.generator,
  option: {},
};

BREAKING CHANGE

Templates.ApiClient used to provide templates for Classes, but with the provision of FunctionalApiClient, the namespace is now separated.

import * as Templates from "@himenon/openapi-typescript-code-generator/templates";

- Templates.ApiClient
+ Templates.ClassApiClient

What's Changed

  • refactor: update deps and change directory by @Himenon in #98
  • feat: functional api client by @Himenon in #99

Full Changelog: https://github.com/Himenon/openapi-typescript-code-generator/compare/@himenon/[email protected]...@himenon/[email protected]

@himenon/[email protected]

03 Jan 13:46
Compare
Choose a tag to compare

BREAKING CHANGE: require typescript >= 4.8

@himenon/[email protected]

27 Nov 12:16
Compare
Choose a tag to compare

@himenon/[email protected]

15 Nov 12:43
Compare
Choose a tag to compare

@himenon/[email protected]

06 Oct 15:41
Compare
Choose a tag to compare

Bug Fix

The following schemas reported in #86 are now handled correctly

components:
  schemas:
    Foo: 
      type: object
      properties:
        bar:
          type: object
          properties:
            baz:
              type: string
    Bar:
      $ref: '#/components/schemas/Foo/properties/bar'
    Baz:
      $ref: '#/components/schemas/Bar/properties/baz'

What's Changed

  • fix: accessing nested object properties by reference by @Himenon #86, #88

Full Changelog: https://github.com/Himenon/openapi-typescript-code-generator/compare/@himenon/[email protected]...@himenon/[email protected]

@himenon/[email protected]

06 Oct 08:02
Compare
Choose a tag to compare

Features

References that include Fragments(#) now work.

schema:
  $ref: "v0.yml#/components/schemas/Book/properties/metadata/properties/description"

What's Changed

Full Changelog: https://github.com/Himenon/openapi-typescript-code-generator/compare/@himenon/[email protected]...@himenon/[email protected]

@himenon/[email protected]

06 May 11:07
Compare
Choose a tag to compare

@himenon/[email protected]

06 May 11:03
Compare
Choose a tag to compare

Bug Fix

  • fix: remove require import #80

@himenon/[email protected]

26 Apr 08:53
Compare
Choose a tag to compare

Features

  • feat: support enum boolean union types #76
schemas:
    BooleanEnumType3:
      type: boolean
      enum: [true, false]
export type BooleanEnumType3 = true | false;

@himenon/[email protected]

31 Mar 15:50
Compare
Choose a tag to compare

Features

  • feat: add title in comment #75