Skip to content

Releases: swagger-api/swagger-codegen

Swagger-codegen 2.1.5 Released!

15 Jan 00:07
Compare
Choose a tag to compare

Another big update to swagger-codgen. 198 pull requests have been merged and over 150 issues closed. Codegen now has 36 different targets to build from your Swagger (now OAI) specifications.

We've also started pushing docker images of the swagger-online generator directly to DockerHub. You can pull these images and generate code directly inside your Docker infrastructure in seconds, without building anything.

The swagger-codegen-cli has updated options, all which are available inside the swagger-generator server.

General enhancements & bug fixes

  • A bug with inline response models has been addressed (#1618, #1734)
  • A static javascript client has been added (#1671, #1690)
  • Better support for variable + parameter name collisions (#1821, #1824)
  • Binary and Byte types are now exposed to the template system (#1757)
  • Dependency updates (#1776)
  • Duplicate operationId prevention (#1823)
  • General code hygiene (#1794)
  • Options sanitization, datatype declaration for configuration purposes (#1786, #1805)
  • Profiling added to scripts (#1709, #1708, #1702)
  • Publish docker image on build (#1813)
  • Vendor extension support (#1768)

Language-specific updates

Swagger-codegen 2.1.4 Released!

26 Oct 19:18
Compare
Choose a tag to compare

Tons of updates in the latest swagger-codegen release. In addition to having a number of
template and language-specific fixes & updates, there are some core changes to the codegen
which provide more complete spec support and enhanced debugging.

We’ve also added maven central badges (#1368) and greatly improved the README for the
project.

The swagger-codegen-cli executable jar has greatly improved documentation and the ability to use configuration files instead of a mountain of CLI options (#1306).

Here are some details of updates in this release. Overall there were 160 PRs merged!

General enhancements & bug fixes

  • README updated with better instructions, TOC
  • NPE fixed for empty OAuth scopes
  • Better online generator support documentation
  • Configuration set via file (#1306)
  • Better exception handling (#1359, #1356, #1276)
  • Migrated tests to be pure java (#1312, #1304)
  • Authorization scope added to security models (#1390, #1392)
  • Support for inline models through new swagger-parser features (#1410)
  • Support for top-level consumes & produces (#1411, #1370)
  • Better handling for missing/invalid operationId (#1431)

Language-specific updates

Swagger-codegen 2.1.2 Released!

09 Jun 14:48
Compare
Choose a tag to compare

This is the first formal release of swagger-codegen with 2.0 spec support. Many thanks to the community for furthering the development of swagger and especially to @wing328 and @xhh (among others) for their generous contributions to the project.

Please note! We have repackaged the project from com.wordnik to io.swagger. The code API is the same!

Usage notes

Swagger-codegen has a fresh new command-line interface, and can be run, stand-alone or as a web-service from open-source tools.

Major changes

With the added support in swagger-parser, swagger-codegen now supports more complete swagger 2.0 specifications as well as YAML file formats.

Added support for c++ in the QT5 framework, as well as Perl, and Swift.

Notable features

  • added C# generator #373, #399, #665
  • Better support for 1.2 specs #606
  • Improved PHP support #614, #622, #103, #635, #628
  • Python support improvement #594, 595
  • Improved Ruby template support #253
  • Auto-generated method naming improvements #639, #274
  • Java client support improvement #305, #690, #445
  • Objc client support improvement #638, #633
  • Switched to native JSON parsing for Android #687

Notable bug fixes

  • enum support for 1.2 specs fixed #621
  • Nested models in java/android generations fixed #290
  • Fix for recursive examples #728

Swagger-codegen 2.1.0-M2 Released!

08 Apr 10:58
Compare
Choose a tag to compare

This version of swagger codegen has improved support for client generation as well as new target support. Thanks to community contributions, we now have added support for the following clients:

  • async-scala
  • Ruby
  • csharp

We also are excited to provide support for spring-mvc with the new springfox project.

You can run the codegen locally, online via http://generator.swagger.io or interactively in http://editor.swagger.io

Usage notes

There are several new targets in the root project. You can now run integration-tests by running:

mvn integration-test -Psamples

which will, assuming you have the necessary compilers, etc installed, run tests against the generated clients.

Notable features

#444 updated nodejs server generator to support 2.0 specs
#437 updated executable jar for better usability
#225 updated objective-c generator to include AFNetworking 2.0+
#41 added HTTP patch support
#514 java codegen supporting array parameters in query, path, header
#552 added support for parsing reusable parameters
#448 support for maps in generated clients
#440 added async scala client generator
#191 Objective-c file uploads

Notable bug fixes

#577 support newlines, quotes in descriptions, general text
#503 support for invalid character in language name generation
#497 NPE with resource path : /
#557 issues generating jaxrs servers from example specs
#380 support for windows builds

Swagger codegen 2.1.2-M1 Released!

24 Feb 15:17
Compare
Choose a tag to compare

Minor release with some important updates:

  • Resolving external references supported via swagger-parser-1.0.1
  • Added async scala client generator
  • Nodejs server generator updates

Swagger codegen 2.1.1-M1 Released!

18 Feb 06:00
Compare
Choose a tag to compare

Patch release to address the following issues:

  • Executable jar not loading swagger 1.0, 1.1, 1.2 parsers #437
  • Windows users getting error #380
  • Removed unused resources in online generator #439

Swagger codegen 2.1.0-M1 Released!

17 Feb 18:38
Compare
Choose a tag to compare

Swagger codegen 2.1.0-M1 has been released! This is a major release which integrates the Swagger 2.0 specification as well as better support for older swagger versions. See the README for all the details.

Major changes:

Notable Features

  • Added enum support in models when possible #99
  • Added generalized header passing when reading swagger specifications #102
  • Generalized file upload for objective-c clients #191
  • Changed build to support java8 and windows #205

Bug fixes

  • Fixed array support for java clients #189
  • PHP object comparisons made safe #224
  • python model deserialization fixed #281
  • Array deserialization support fixed #277

Limitations

  • Same restrictions as swagger-core-1.5.0-M1
  • Polymorphism & model composition are not supported

swagger-codegen v2.0.17 released

26 Aug 23:55
Compare
Choose a tag to compare

Notable changes:

  • added extensible input config
  • added {{apiInfo}} tag
  • added android support to release

v2.0.13

21 Feb 14:46
Compare
Choose a tag to compare
v2.0.13