Releases: Himenon/openapi-typescript-code-generator
@himenon/[email protected]
What's Changed
Full Changelog: https://github.com/Himenon/openapi-typescript-code-generator/compare/@himenon/[email protected]...@himenon/[email protected]
@himenon/[email protected]
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]
BREAKING CHANGE: require typescript >= 4.8
@himenon/[email protected]
@himenon/[email protected]
What's Changed
Full Changelog: https://github.com/Himenon/openapi-typescript-code-generator/compare/@himenon/[email protected]...@himenon/[email protected]
@himenon/[email protected]
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
Full Changelog: https://github.com/Himenon/openapi-typescript-code-generator/compare/@himenon/[email protected]...@himenon/[email protected]
@himenon/[email protected]
Features
References that include Fragments(#
) now work.
schema:
$ref: "v0.yml#/components/schemas/Book/properties/metadata/properties/description"
What's Changed
- feat: supports fragment in remote reference by @karupanerura in #83, #87
Full Changelog: https://github.com/Himenon/openapi-typescript-code-generator/compare/@himenon/[email protected]...@himenon/[email protected]
@himenon/[email protected]
@himenon/[email protected]
Bug Fix
- fix: remove require import #80
@himenon/[email protected]
Features
- feat: support enum boolean union types #76
schemas:
BooleanEnumType3:
type: boolean
enum: [true, false]
export type BooleanEnumType3 = true | false;