Skip to content

Releases: ProtocolNebula/ts-openapi-generator

2.2.0

06 Jan 17:02

Choose a tag to compare

Templates support added.

Now is customizable!

Added

  • Issue #3 - Custom templates: Now you can create a custom template and use it without modify the source code.
  • Issue #6 - Custom enums mapping: As part of a template, enums are configurable.
  • Issue #7 - Default templates support. Now current template is named angular2, so you must to add -t angular2 to you cli script
transform-swagger -f ...json -o src/generatedApi/ -t angular2
  • ConfigModel class
  • TemplateConfigModel class

Changed

  • Output folders now are retrieved from ConfigModel.
  • Now template is required as parameter.
  • Default type added.
  • Yargs (arguments) are not read directly, are parsed to ConfigModel.

2.1.3

05 Jan 23:31

Choose a tag to compare

Changed

  • If schema has not been defined, any will set again (instead void). This undoes 2.1.2 partially.

Fixed

  • Added Elvis operator to all 'isXXX' internal conditional in parser-base.service.ts

2.1.2

04 Jan 23:35

Choose a tag to compare

Added

  • New types to default mapping: File and Void

Fixed

  • If response schema is "empty" (ex: json -> with no content) it will detect as `void instead throw an error.
  • Enums in "models" (components) and schemas now generated.

2.1.1

03 Jan 17:47

Choose a tag to compare

Added

  • Now -v is available as parameter as --version alias.

Changed

  • Auto-generated types (parameters, request body, ... without explicit declaration) forced to to CapitalCase (UpperCamelCase).

Please check and update your code after generate the template.

Fixed

  • "Native" types previously was generating a new model in parameters or other cases.

2.1.0

02 Jan 12:10

Choose a tag to compare

Changed

  • Forced groupName (class name) to CapitalCase (UpperCamelCase).

Please check and update your code after generate the template.

2.0.3

07 Jan 21:15

Choose a tag to compare

Fixed

  • nodemon: added "templates" folder
  • Removed empty comments in the generated files

2.0.2

31 Dec 14:27

Choose a tag to compare

Added

  • Getter/Setter for verb in API

Fixed

  • API template "verb" was wrong
  • nodemon settings for start:dev

2.0

30 Dec 23:06

Choose a tag to compare

2.0

The first release of the version 2 (the version 1 was never released, but I notice this too late).