Skip to content

2.2.0

Choose a tag to compare

@ProtocolNebula ProtocolNebula released this 06 Jan 17:02
· 93 commits to main since this release

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.