Skip to content

Releases: Himenon/openapi-typescript-code-generator

@himenon/openapi-typescript-code-generator@0.24.0

01 Apr 10:07
Compare
Choose a tag to compare

Breaking Change

  • Update Api Client Arguments Interface #106

Playground: v0.24.0

New

export interface RequestArgs {
    httpMethod: HttpMethod;
    url: string;
    headers: ObjectLike | any;
    requestBody: ObjectLike | any;
    queryParameters: QueryParameters | undefined;
}
export interface ApiClient<RequestOption> {
    request: <T = SuccessResponses>(requestArgs: RequestArgs, options?: RequestOption) => T;
}

Old

export interface ApiClient<RequestOption> {
    request: <T = SuccessResponses>(httpMethod: HttpMethod, url: string, headers: ObjectLike | any, requestBody: ObjectLike | any, queryParameters: QueryParameters | undefined, options?: RequestOption) => Promise<T>;
}

What's Changed

Full Changelog: https://github.com/Himenon/openapi-typescript-code-generator/compare/@himenon/openapi-typescript-code-generator@0.22.3...@himenon/openapi-typescript-code-generator@0.24.0

@himenon/openapi-typescript-code-generator@0.22.3

@himenon/openapi-typescript-code-generator@0.22.2

20 Mar 15:06
Compare
Choose a tag to compare

@himenon/openapi-typescript-code-generator@0.22.1

@himenon/openapi-typescript-code-generator@0.22.0

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/openapi-typescript-code-generator@0.21.0...@himenon/openapi-typescript-code-generator@0.22.0

@himenon/openapi-typescript-code-generator@0.21.0

03 Jan 13:46
Compare
Choose a tag to compare

BREAKING CHANGE: require typescript >= 4.8

@himenon/openapi-typescript-code-generator@0.19.3

27 Nov 12:16
Compare
Choose a tag to compare
@himenon/openapi-typescript-code-generator@0.19.3

@himenon/openapi-typescript-code-generator@0.19.2

15 Nov 12:43
Compare
Choose a tag to compare

@himenon/openapi-typescript-code-generator@0.19.1

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/openapi-typescript-code-generator@0.18.3...@himenon/openapi-typescript-code-generator@0.19.1

@himenon/openapi-typescript-code-generator@0.19.0

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/openapi-typescript-code-generator@0.18.3...@himenon/openapi-typescript-code-generator@0.19.0