Releases: swagger-api/swagger-codegen
Swagger-codegen 2.1.4 Released!
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
- Swift enhancements (#1436)
- Ruby enhancements (#1432, #1401, #1302, #1298, #1302)
- TypeScript enhancements (#1385, #1427, #1261)
- Perl enhancements (#1418, #1145)
- PHP enhancements (#1417, #1356)
- Java enhancements (#1416, #1375, #1280, #1264)
- Updated Objective-C to AF 3.0 (#1412)
- Objective-C updates (#1340)
- Static HTML enhancements (#1397, #1335)
- Swift enhancements (#1404)
- Python enhancements (#1300, #1295, #1290, #1290, #1281)
- C Sharp enhancements (#1393, #1333, #1331, #1307)
- Android enhancements (#1377)
- Added retrofit client library support (#1384, #1372, #1256)
- NodeJS server enhancements (#1360)
- Dynamic HTML enhancements (#1310)
Swagger-codegen 2.1.2 Released!
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
Swagger-codegen 2.1.0-M2 Released!
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!
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!
Swagger codegen 2.1.0-M1 Released!
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:
- Moved to pure java. Scala is used just for tests
- Added an executable fat jar. No need to compile, just download the jar from maven central (https://oss.sonatype.org/content/repositories/releases/com/wordnik/swagger-codegen-distribution/2.1.0-M1/swagger-codegen-distribution-2.1.0-M1.jar)
- Created an online codegen version, swagger-generator, to let you generate code from an online webapp. You can either deploy it locally or use the online version at http://generator.swagger.io.
- Extensible readers with swagger-parser + SPI. Want to create your own importer? Now it's completely pluggable in the codegen project.
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
Notable changes:
- added extensible input config
- added
{{apiInfo}}tag - added android support to release