Skip to content

Swagger Codegen 2.4.0 has been released!

Compare
Choose a tag to compare
@frantuma frantuma released this 30 Nov 10:18
· 1224 commits to master since this release
ddc4154

Long awaited 2.4.0 release!

Four new generators, and a lot of PRs with bug fixing and enhancement in core and many generators.
Please check out the list of PRs in Notable changes below to see how generators are affected.

New Generators:

  • kotlin-server (Server)
  • typescript-inversify (Client)
  • scala-gatling (Client)
  • dart-jaguar (Client)

Notable changes:

  • disabled spring tests generation. (#8950)
  • fix retrofit2 play imports (#8938)
  • fix rest-assured javadoc (#8937)
  • update spring samples (#8934)
  • update php symfony samples (#8931)
  • update kotlin samples (#8924)
  • Samples update and fixes (#8894)
  • ref #8796 - fix html2 request and response schemas (#8889)
  • fixes python tests in Travis CI (#8887)
  • ref #8884 - fix openapi-yaml serialization (#8885)
  • Frozenstep kotlin fixing file uploading (#8827)
  • Frozenstep kotlin void response type (#8822)
  • Added Windows Docker Run instruction (#8788)
  • added api test files templates for springboot and spring mvc. (#8771)
  • Frozenstep kotlin download file fix (#8769)
  • refactor changes related to #8712 in order to solve maven build fail. (#8748)
  • [PHP] add support deprecated phpdoc tag (#8735)
  • [PHP] update php-symfony/services.mustache (#8730)
  • [Dart] Fix Dart enums (#8426) (#8721)
  • remove system property to avoid affect others generator tests. (#8716)
  • fixed example fields addition (#8713)
  • generator for dart jaguar (#8681)
  • adapt for jenkins CI java7 (#8649)
  • [Cpprest] Check for null values (#8647)
  • adapt for jenkins CI (#8643)
  • Resteasy sample tweaks (#8594)
  • fix(security): bump superagent dependency 3.5.2 -> 3.7.0 (#8580)
  • refs #8530 - fix test spec for jaxrs servers (#8538)
  • Update README.md (#8536)
  • [BUG] [CRITICAL] [PHP] Symfony server incorrect validation: min contstraint in max condition (#8535)
  • PHP 7.2 (#8534)
  • Add support for x-codegen-ignore and x-import-mapping extensions (#8478)
  • Fix for $ref as last element in allOf error (#8476)
  • [C#] Support newlines in comments in various sections (#8472)
  • added logic for newlines in comments for operation descriptions only (#8463)
  • add output file options for swagger codegen (#8454)
  • Fix for Issue #8339 (#8453)
  • refs #3261 - fixes maven plugin example jersey version (#8448)
  • refs #8359 - Fixed setting of custom header (#8446)
  • Revert "Fix getter methods for Java model with additionalProperties" (#8440)
  • added value to required property on test data. (#8434)
  • added mixIn configuration on mapper to fix extra schema on swagger-yaml (#8427)
  • add timeout to circleci (#8422)
  • setup sbt in circle config (#8420)
  • Make spring-mvc jersey tests wait that jetty is closed before terminating (#8418)
  • [PYTHON] Issue 8075 - additionalProperties support (#8414)
  • feat: support for python3.7 (async is a keyword) (#8401)
  • Fix issue #5780 (#8317)
  • Update README.md (#8316)
  • Update README.md (#8312)
  • fixed NPE on getHasQueryParams method. (#8297)
  • Fix getHasQueryParams to take authMethods into account (#8292)
  • added pattern, mixLength, maxLength from "non object" model to a code… (#8277)
  • Make usage of -D more explicit in example (#8276)
  • Docker: use correct MAVEN_CONFIG (#8257)
  • Fix getter methods for Java model with additionalProperties (#8245)
  • updated swagger core and swagger parser versions, also added tests to… (#8225)
  • fixed index out of bound exception for inline empty example field. (#8220)
  • [JAVA] Add import to models for jaxrs-reasteasy-eap (#8185)
  • [typescript-angular] add providedIn support (#8183)
  • Comment out scalaz test due to sbt error (#8172)
  • Strict Typescript output of discriminator (PHNX-805) (#1) (#8157)
  • update typescript-node package-lock.json (#8156)
  • [typescript-angular] Added support for Angular v6 (by adding support for RxJS v6) (#8155)
  • Fix for uncompilable java client if no model definitions is specified … (#8123)
  • [rust-server] Enhance middleware support (+ perf fix) (#8114)
  • typescript-angular: Ng43 with interfaces petstore scripts (#8102)
  • [Clojure] Default */- MIME to application/json (#8096)
  • Fix context import order (#8094)
  • Add option modelPropertyNaming to javascript generator (#8086)
  • Camelize Kotlin model names and filenames (#8085)
  • Add support for typealiases in Kotlin client (#8084)
  • Remove extra spaces breaking line-continuation (#8070)
  • Adapt Python README template, fixes #7269 (#8069)
  • Fix read on closed body. (#8057)
  • [codegen][java]Issue 8055: create javadoc and source jar from gradle build (#8056)
  • [JAVA][Rest-assured] Version rest-assured has been updated to 3.1.0 (#8052)
  • [typescript][angular] query parameter with null value should not be set (#8033)
  • Allow to set values with setApiPackage(..) and setModelPackage(..) (#8013)
  • Add HideGenerationTimestamp getter and setter in CodegenConfig (#8009)
  • show number as strings (#8003)
  • Getter and Setter for hideGenerationTimestamp (#7998)
  • Added vendorExtensions.x-isPrimitive. (#7991)
  • Golang Client Refactor (body and model in errors, typed optional parameters) (#7987)
  • Fixing invalid syntax of commas in build.gradle of generated Java lang client (critical error) (#7985)
  • [typescript-angular] AOT-compatible API client (via ng-packagr and ngc) (#7984)
  • Remove TypescriptInversifyAdditionalPropertiesIntegrationTest.java to fix integration tests (#7983)
  • Removed a duplicated entry in the config file (#7981)
  • Issue 5542, always generate pom and readme (#7977)
  • typescript-angular: added Interfaces to api exports if withInterfaces is selected (#7975)
  • change parseDate in es6/APIClient (#7973)
  • [rust-server] API version constant and composite version support (#7969)
  • [Java] Configuration option to disable HTML escaping when using Gson (#7966)
  • [Dart] Fixes TypeError in Dart 2 mode (#7959)
  • Additional reserved python keywords (#7956)
  • [PHP] Improve duplicated validation logic (#7954)
  • [PHP] Fix string length validation (#7953)
  • Fix the missing tag on FakeApi (#7952)
  • Update ObjcClientCodegen.java (#7950)
  • [Swift 3] removing trailing spaces (#7943)
  • Update README.md (#7940)
  • [qt5cpp] Fix crash when API return a map container (#7933)
  • fix #7906 [cpprest] add parameterToString for number type with unspecified format (#7929)
  • [Swift4] accept empty content with default client (#7921)
  • [kotlin] Add json annotation to each enum value. (#7908)
  • [kotlin] Add OkHttpClient.Builder to ApiClient. (#7907)
  • [NodeJS] make serverPort configurable via CLI option (#7899)
  • Misc typescript Angular code generation improvements (#7898)
  • [rust-server] asynchronous support via hyper v0.11 (#7896)
  • Modify "postProcessOperations" for "jaxrs-cxf-client" (#7886)
  • Add typescript-inversify code generator (#7885)
  • Fix inputSpec for multi module builds (#7883)
  • removed null fields (#7882)
  • Updated version number (#7880)
  • Update to newer version of Ruby in Travis config file (#7879)
  • Update README.md (#7877)
  • [aspnetcore] Update Dockerfile (#7873)
  • [JAVA] 4709: codegen with parcelableMode fails to build if using arra… (#7867)
  • added config to yaml mapper to minimize long text. (#7864)
  • Fix typescript-node generation of array type models (#7861)
  • Fix strict class initialisation in auth classes (#7860)
  • Make optional properties in models optional parameters (#7859)
  • [C++] Add linux as a reserve keyword (#7844)
  • [qt5cpp] delete callback data allocated before signal emission (#7840)
  • Candidature to integrate Qt technical commitee (#7834)
  • [TypeScript][Fetch] Add interfaces option (#7831)
  • [Swift 4] Fix APIHelper to accept array parameter (#7821)
  • [cpprest] Add support for nested vectors (#7820)
  • html: fix typo in class name (#7818)
  • [C++][qt] Fix warning message (#7815)
  • Factorize addOption/addSwitch method (#7814)
  • [qt5cpp] Remove qt5 pro.user file (#7813)
  • Fix nodejs-server path issue in windows platform (#7808)
  • [Jaxrs-cxf] Add bean-level cascaded beanvalidation for pojos (@Valid) fix #4738 (#7807)
  • Mark not required swagger properties as optional typescript properties (#7806)
  • Adding qt project generation fix #7784 (#7799)
  • Remove unused dep when model package is empty (#7793)
  • Qt5cpp plug memleaks part2 (#7792)
  • [Java][google-api-client] Fix bug with empty POST request not sending content-type (#7787)
  • [PHP] Fix code example from README. Variable name was missing when using Basic auth. (#7777)
  • Improve JMeter Template : Fix Issue 7773 (#7774)
  • Update README.md (#7772)
  • Check date value before calling to_iso8601 (#7769)
  • [JAVA] Correct consumes/produces attributes for Spring Controllers (#7760)
  • [Java] fix connection leak on retrofit OAuth token renewal (#7750)
  • Fix python / tornado body handling (#7738)
  • [Elm] Add support for array schemas (#7729)
  • [elm] missing '->' in Main elm template (#7728)
  • Fix for stripping prefix on single enums (#7726)
  • [PHP] Improve: Make validation strict (#7724)
  • [PHP] Non required enum property (#7723)
  • [PHP] Improve: update sample tests automatically (#7717)
  • Feature/javaPlayWithAsynchronousControllers (#7705)
  • [Rails5] make version of the generated Rails stub server to strict Ra… (#7700)
  • Qt5cpp plug memleaks (#7695)
  • Remove tab (#7692)
  • Added FormAPI to the list of companies that are using swagger-codegen (#7687)
  • [PHP] Improve validation on empty arrays (#7686)
  • Fix performance linting problem with maps in java ApiClient template (#7685)
  • Fix inconsistency between model name and file name in python client (#7684)
  • [PHP] Run unit tests on 'tests' directory (#7675)
  • [PHP] Cleanup test (#7673)
  • [PHP] Add path & file separator (/) to return the correct path when deserializing a file (#7671)
  • [Java][retrofit2] Fix for Issue #7446 (#7659)
  • [Ada] by defining x-is-model-type when property is local to the YML file (#7655)
  • [Swift] Add public initializer for modelObject. (#7652)
  • [ObjC] deprecated afnetworking datataskwithrequest (#7645)
  • fix typo (#7641)
  • [Ruby] Add auto-generated rubocop config file (#7637)
  • Properly capitalize exported go types (#7636)
  • [Scala][Gatling] correct body params filename (#7635)
  • [NodeJS][Server] fix NPE when host is undefined (#7633)
  • [Rust] Changes hard coded body to dynamic parameter name - Fixes #6569 (#7630)
  • [kotlin] Fix NPE for POST/PUT/PATCH with empty request models. (#7629)
  • Update README.md (#7615)
  • [MAVEN PLUGIN] Checking for null configOptions before looking for property (#7613)
  • Fix Swift3 test cases and add pom.xml, travis config for iOS test (#7608)
  • [Java][Spring] fix optional query params missing in generated swagger (#7607)
  • [Java][Jersey2] Make generated client code thread safe (#7605)
  • Add SessionM to list of companies using swagger. (#7598)
  • Kotlin: Correct data_class.mustache to use proper property for inner enum data type (#7597)
  • Add a link to eBook on top (#7588)
  • [aspnetcore] Fix string enum generation (#7581)
  • [Ada] Fix GNAT project and server skeleton to avoid sending a response when an error is returned (#7574)
  • [Lua] Improve auto-generated test files (#7568)
  • Add withXml option for Go language (#7566)
  • Add auto-generated Lua spec files for APIs, models (#7562)
  • Fixed unicode error and supported allow_nonstandard_methods in tornado based python client (#7560)
  • [JAVA][Rest-assured] reqSpec() method has been added into api.mustache for requests custom… (#7556)
  • Add restunited to the list of companies (#7555)
  • [Lua] Fix Rockpec (#7554)
  • [Ada] changed default project/package name, to solve circular dependencies (#7550)
  • [Java] Add back byte array enhancement (#7546)
  • Use latest version in dependencies snippet (#7545)
  • [haskell-http-client] default InlineMimeTypes=true (#7534)
  • [Swift3] escape URL parameters (#7529)
  • [Dart] Allow setting an accessToken for OAuth (#7528)
  • [Ada] remove trailing spaces in Ada template (#7527)
  • [R] Remove trailing spaces in R templates (#7526)
  • [QT5][C++] remove trailing spaces in the templates (#7525)
  • Add operationIdOriginal to store the original operationId (#7522)
  • Fix generated module imports in Aurelia APIs (#7465) (#7520)
  • [csharp] ctor params should always be camelCase (#7519)
  • @viclovsky has been added to template creators (#7517)
  • [Kotlin] Fix issues with threetenbp (#7516)
  • [haskell-http-client] add config options: cabalPackage, cabalVersion, baseModule, requestType, configType (#7515)
  • [Ada] fix PUT request and authentication checks for the server skeleton (#7514)
  • [Ada] Client call is not correct with multiple parameters and application/x-www-urlencoded (#7512)
  • [Python][Flask] Handles UUID format - Fixes #7469 (#7507)
  • [Typescript jQuery] Fix Enum breaking changes (#7506)
  • Add Play server samples to CircleCI (#7501)
  • Update dependency: swagger-annotation to v1.5.17 (#7500)
  • Upgraded swagger-parser and swagger-core versions (#7497)
  • [Java Play Framework ]Fix issue with CSV fields (#7496)
  • Declare property headerSelector in the API files (#7495)
  • Fix little bug in csharp READMEs (#7494)
  • [NEW API CLIENT] Java Rest-assured (#7492)
  • [Ada] Hotfix/ada model sort (#7491)
  • Add lua test script, minor fix to Lua API files (#7490)
  • [Java][library: vertx] Expose getter/setter for serverPort to facilitate testing. Fixes #7478 (#7480)
  • [TypeScript][Angular] fix date path parameters (#7476, #7302) (#7479)
  • Add auto-generated rockspec file to Lua API client (#7475)
  • [Java][okhttp] Fix gson deserialize format byte (#7473)
  • [Feature][PHP] Update for ze-ph generator (#7472)
  • [Rust] Handles UUID as string (#7471)
  • Add Spring Petstore samples (async, java8-localdatetime) to CircleCI (#7468)
  • Add R namespace file (#7467)
  • [Ada] wrong order for generated structures in *-models.ads (#7462)
  • [Ada] wrong JSON in POST operations (#7460)
  • Ada code generator corrected: "=>" instead of "->" (#7456)
  • Adds support for returning response in jaxrs-spec interfaces (#7442)
  • Fix that prevents generating interfaces when interfaceOnly is false. (#7439)
  • [Feature][TypeScript] request param enum as literal unions (#7433)
  • Merge 2.4.0 into master (#7426)
  • [Dart] - Rework Dart client generator to be flutter-compatible (#7418)
  • [kotlin-server] --library=ktor (barebones implementation) (#7412)
  • Use supportsES6 flag in ts compilation for language typescript-angular (#7408)
  • [csharp] Support arrays of arrays for properties and models (#7400)
  • [csharp] Fix ToJson to work with composition and polymorphism (#7399)
  • Use Rx2 Completalbe for Void Retrofit2 responses (#7397)
  • [csharp] Reference this.Configuration in client api template (#7394)
  • [scala] Escape reserved words, support Array[Byte] (#7378)
  • add swagger example to README.md (#7368)
  • [Java][Vertx] use reflection to instantiate non-generated class (#7360)
  • #7093 - Add maven wrapper (#7356)
  • [Java][jersey2] Fix logging for jersey2 (Java6) (#7348)
  • Swift4: make generated models structs instead of classes (#7345)
  • [Java] allow setting boolean getter (is, has, get) in templates (#7344)
  • [Rust] Implement minimal auth support (#7338)
  • [Rust] Recommend style based on 'rustfmt' defaults (#7335)
  • Update contributing guide link in README (#7332)
  • [Typescript][Angular] fix regression/bug that parameters with an _ ignore naming convention (#7313)
  • [Doc] add huawei cloud to companies list #7308 (#7309)
  • Update README.md (#7299)
  • Update README.md (#7298)
  • [scala] updates for client default values, required attributes (#7286)
  • [JAX-RS] Use correct jackson date library when using Java 8 (#7285)
  • [Go] Generate swagger yaml for go client (#7281)
  • [Scala] Fix async helper methods when body is optional (#7274)
  • [Scala] Fix missing json4s import (#7271)
  • Adding Peatio opensource as reference project (#7267)
  • Fix to make Swagger Codegen compatible with JDK7 again (#7260)
  • [erlang-client] Erlang request utils (#7257)
  • [Ada] Add Ada support for server code generator (#7256)
  • [typescript-angular] Add option to generate tagged unions (#7245)
  • [Java Play Framework] Fix a regression bug that was introduced in a recent commit in routes (#7241)
  • [JavaScript] Set ES5 as default (#7239)
  • Video "Building an API with Swagger" (#7237)
  • [python-asyncio] tests and fixes (#7235)
  • [Java:vertx] Initialize router in init method and re-use router member to create SwaggerRouter (#7234)
  • [Akka-Scala] fixes a missing import (#7228)
  • [haskell-http-client] bump stack resolver to lts-10.0 (#7221)
  • added prokarma to the name of the company (#7215)
  • [Go] rename local variable "file" to "localVarFile" (#7214)
  • [Java][PKMST] Move resource folder (#7213)
  • [TS][Fetch] Use unescaped media type value (#7210)
  • [Java][PKMST] rename pkmst to java-pkmst, update scripts/batch files (#7209)
  • Add our company to list (#7203)
  • [TypeScript] Take the modelPropertyNaming property into account again (#7202)
  • Create abstract go codegen base class #6059 (#7197)
  • Fix typo in Petstore yaml #7190 (#7195)
  • [Go] Return error body with >= 300 errors (#7192)
  • [JAVA][Spring]Optional params with delegate (#7180)
  • SpringCodeGen dateLibrary "java8-localdatetime" option is ignored (#7178)
  • [Rust-Server] use status codes as the variants of the response enums instead of descriptions (#7125)
  • [kotlin] support selection of datelibrary (#7054)
  • [C#] fix net35 with JsonSubTypes (#7043)
  • pkmst- Prokarma microservice toolkit for java (#7023)
  • [TypeScript-Fetch] Support for non-JSON body params (#6994)
  • [Elm] Add Elm client generator (#6947)
  • removed isomorphic-fetch typing dependency (#6894)
  • [Java][Spring] Add java8, interfaceOnly, delegatePattern to generated server stubs (#6476)