Skip to content

Releases: swagger-api/swagger-codegen

Swagger Codegen 2.3.0 has been released!

22 Dec 03:38
Compare
Choose a tag to compare

This release brings a record of 13 new generators in a single release with more than 600 PRs, which contain breaking changes (with fallback, without fallback).

Note! This release does not yet support OpenAPI 3.0, which will be included in the upcoming 3.0.0 release.

Many thanks again to the swagger-codegen team for their continued support of the project and the contributions from the awesome Swagger Codegen community with more than 800 contributors from all around the world.

General enhancements & bug fixes

New Generators:

API Clients

API servers

API Clients (enhancements, bug fixes)

API Servers (enhancements, bug fixes)

Documentation (enhancements, bug fixes)

Swagger Codegen 2.2.3 has been released!

15 Jul 22:36
Compare
Choose a tag to compare

This release brings a record of 11 new generators in a single release with more than 450 PRs. Note! We will stop support on the 2.2.x branch of swagger-codegen and focus on 2.3.x and soon 3.x. Please consider migrating to 2.3 now!

Many thanks again to the swagger-codegen team for their continued support of the project and the contributions from the awesome Swagger Codegen community with 643 contributors from all around the world.

General enhancements & bug fixes

New Generators:

API Clients

API servers

Configuration

API Clients (enhancements, bug fixes)

API Servers (enhancements, bug fixes)

Documentation (enhancements, bug fixes)

Swagger Codegen 2.2.2 has been released!

01 Mar 20:01
Compare
Choose a tag to compare

This release brings 4 new API client generators and 5 new server stub generators. More than 500 enhancements and bug fixes have been successfully merged.

Many thanks to the swagger-codegen team for their continued support of the project and the contributions from the awesome Swagger Codegen community. A special thanks to @wing328 for helping drive the project (and for drafting these release notes...)

General enhancements & bug fixes

New Generators:

API Clients

API servers

API Clients (enhancements, bug fixes)

API Servers (enhancements, bug fixes)

Documentation (enhancements, bug fixes)

Swagger-codegen 2.2.0 Released!

18 Jul 00:18
Compare
Choose a tag to compare

Swagger Codegen 2.2.0 has been released! This release provides major new functionality across multiple generation targets and addresses a number of potential issues.

There are changes in a number of the generation targets which may change the default behavior. Please review links associated with targets for details.

For a list of breaking changes (without fallbacks), please refer to this list.

For a list of breaking changes (with fallbacks), please refer to this list.

Once again, many thanks to the swagger-codegen team for their continued support of the project.

General enhancements & bug fixes

  • Update JMustache to the latest version (v1.12): #2360
  • Better support example value for string and number: #2689
  • Improvement to codegen model #2691, #2712
  • Fix naming of the BEARER token: #2783
  • Fix unicode issue when reading OpenAPI spec: #2785
  • Add individual options to exclude tests and docs for apis and models: #2866
  • Use title attribute as inline model name: #2872
  • Add .swagger-codegen-ignore to skip overwriting files: #2899
  • Add Apache 2.0 license to all generators: #2993
  • Minor improvements to code generator: #2921, #3005, #3289
  • Improvements to API documentation: #2928, #2929
  • Additional integration tests using Shippable and AppVeyor: #3275, #3333

Security fixes

API client generators

API server generators

Swagger-codegen 2.1.6 Released!

09 Apr 08:06
Compare
Choose a tag to compare

General enhancements & bug fixes

API client generators

API server generators

  • Java server (Spring, JAX-RS) generator - enhancements and bug fixes #2421, 2346, #2256, #2249, #2021, #1960, #1882
  • Haskell Servant generator - first release #2009
  • ASP.NET 5 server generator - first release #2024
  • Python Flask generator - #1958, #1957

For a list of breaking changes (without fallbacks), please refer to this list

For a list of breaking changes (with fallbacks), please refer to this list

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