Swagger-codegen 2.2.0 Released!
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
- Fixes to prevent code injection: #3201, #3224, #3229, #3230, #3231, #3237, #3245, #3246, #3249, #3278, #3344, #3360
API client generators
- Android - enhancements: better gradle support (#2453, #2875, #2922), bug fixes (#2513, #3131)
- C# - enhancements: UWP support, enum, API doc (#2427, #2508, #2632), bug fixes (#2802, #3187)
- C++ (Qt5) - NEW cpprest generator: #3128, bug fixes (#2707, #3109)
- Clojure - Minor fix to media type (#2930)
- Dart - enhancements (#2478, #3179, #3325), bug fixes (#2436, #2614)
- Flash - Minor fix to required parameters (#2614)
- Go - enhancements (#2528, #2544, #2546, #2567, #2593, #2609, #2692, #2749, #2750), bug fixes (#2591, #2718, #2775)
- Groovy - NEW generator (#2693)
- Java - enhancements (#2435, #3030, #3045, #3065, #3075, #3094, #3099, #3101, #3103, #3108, #3174, #3176, #3312) and bug fixes (#2804, #2863, #2984, #3090)
- JavaScript - enhancements (#2445, #2734, #3134, #3254) and bug fixes (#2930, #3156)
- ObjC - enhancements (#2699, #2786, #2798, #2827, #2878, #3056, #3124) and bug fixes (#2908, #3031)
- Perl - Minor coding style fix #2570
- PHP - enhancements (#2508, #2733, #2778, #2854, #2869, #3163, #3256) and bug fixes (#2753, #3126)
- Python - enhancements (#2418, #2650, #2727, #2794, #3034, #3046, #3146) and bug fixes (#3066, #3061)
- Ruby - enhancements (#2647, #2695, #2697, #2912, #3283) and bug fixes (#2708, #3351)
- Scala - enhancements (#3058, #3149), bug fixes (#2551, #2573, #2614)
- Swift - enhancements (#2417, #2516, #2613, #2637, #2640, #2904) and bug fixes (#2705, #2840, #3038)
- TypeScript - NEW Fetch generator (#2763), enhancements (#2518, #2676, #2758, #2771, #2812, #3130, #3367) and bug fixes (#2574, #2864, #2917)
API server generators
- C# - NEW NancyFX generator #3178, ASP.NET enhancements (#2990, #3139, #3169, #3306)
- Go - NEW Go server generator #2979
- Haskell Servant generator - enhancements (#2322, #3027)
- Java JAXRS - enhancements (#2511, #3185, #3080, #3142), bug fixes (#3016, #3152)
- Java SpringMVC - enhancements (#2606, #2720, #3133)
- Java SpringBoot - NEW Spring Boot generator #2774, #2803, #3112, #3190, #3307
- NodeJS - enhancements (#2761, #3212), bug fixes (#2466, #2655)
- PHP Lumen - NEW Lumen generator (#2658, #3165)
- PHP Slim - minor bug fix #3251
- Python Flask - enhancement (#2560), bug fix (#2580)
- Ruby on Rails5 - NEW Rails5 generator (#2871, #3098)
- Scala Scalatra - minor bug fix #2556