Releases: ProtocolNebula/ts-openapi-generator
Releases · ProtocolNebula/ts-openapi-generator
2.2.0
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 angular2to youcli script
transform-swagger -f ...json -o src/generatedApi/ -t angular2ConfigModelclassTemplateConfigModelclass
Changed
- Output folders now are retrieved from ConfigModel.
- Now
templateis required as parameter. - Default type added.
Yargs(arguments) are not read directly, are parsed toConfigModel.
2.1.3
Changed
- If schema has not been defined,
anywill set again (insteadvoid). This undoes2.1.2partially.
Fixed
- Added Elvis operator to all 'isXXX' internal conditional in
parser-base.service.ts
2.1.2
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
Added
- Now
-vis available as parameter as--versionalias.
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
Changed
- Forced
groupName(class name) to CapitalCase (UpperCamelCase).
Please check and update your code after generate the template.
2.0.3
Fixed
- nodemon: added "templates" folder
- Removed empty comments in the generated files
2.0.2
Added
- Getter/Setter for verb in API
Fixed
- API template "verb" was wrong
- nodemon settings for start:dev
2.0
The first release of the version 2 (the version 1 was never released, but I notice this too late).