Skip to content

v4.3.1 released

Compare
Choose a tag to compare
@wing328 wing328 released this 06 May 09:17
· 6345 commits to master since this release
003165c

v4.3.1 is the last v4.x release before the upcoming v5.0.0 major release. As always, we appreciate the contributions from the community. In this release, we added a few new generators/libraries:

  • java (library: jersey2-experimental)
  • aspnetcore (aspnetCoreVersion: 3.1, 3.0)
  • powershell-experimental
  • scala-akka-http-server

We also fixed a bug (regression) on allOf being incorrectly interpreted as the inheritance (without proper use of discriminator) instead of the model composition (correct interpretation according to the spec).

For the highlight of changes, please refer to the list below. For a full list of changes, please refer to the "Pull Request" tab.

General

  • [cli][build] Relax the git id plugin #6094
  • Propagate deprecated property through $ref's #6093
  • Better "Any Type" support #6091
  • [validation] Warn on duplicate tags #6061
  • Restore allOf behaviour (model composition) for definition with a single schema reference #5977
  • Add input flag for Gradle openApiGenerate task #5966
  • Expose isDeprecated variable to model template #5964
  • [gradle] Print value of outputDir correctly in gradle plugin #5936
  • Update bitwise config #5904
  • [maven] mark Mojo threadSafe=true + fix concurrency issue in CodegenConfigurator #5898
  • [codegen] Fix 'super.HashCode' for oneOf and allOf Implementations (retry) #5830
  • Add default case to handle response code #5825
  • [codegen] Use once(LOGGER) to reduce amount of identical warning messages #5808
  • [cli][docker] Better expose version/sha information of builds #5736
  • [cli] Add --global-property for -D replacement #5687
  • [CORE] Fixes composed schema discriminator map #4906
  • Use model as body param for generateAliasAsModel #4569

C

  • [C][Client]Fix data lost when libcurl write-data callback function is called multiple times #5828
  • [C][Client] Support SSL client authentication for the c client #5719
  • Tests for models for C-libcurl generator #5699
  • [C] fix decode function #5642

C#

  • Fix bearer authentication in c# netcore client (async call) #6136
  • [csharp-netcore] Fixed handling of nullable enum values #6112
  • Implement Asp.Net Core 3.0/3.1 generator #6025
  • [C#] Add bearer support to C# client #5975
  • [C#][netcore] return a null instead of application/json when no content types are set #5941
  • Add bearer auth support to csharp netcore client generator #5921
  • [C#] dependency upgrade #5870
  • [Csharp-client] Complex form parameters are not serialized as application/json #5849
  • [csharp] Library upgrade fix #5848
  • [C#] Fixed valuetype parameters and discriminator deserialization #5680

C++

  • [C++] [Qt5] Export response code to worker #6021
  • [C++] [Qt5] Export valid and set status of properties #6020
  • [C++] [Qt5] [Client] fixed cpp-client-qt5 HttpRequestWorker contentCompression variables initialization #5834
  • [C++] [Qt5] Updates to allow the setting of the dateTime format string #5763
  • [C++] [Qt5] fixed cpp-client-qt5 HttpRequestWorker requests crashing on timeout #5651

Dart

  • [dart-dio] various improvements #6047
  • [Dart] Fix enum data type #5793
  • [Dart] Remove content type from header when content type is not specified #5752
  • [Dart] Fix "basic" auth method and Add Bearer token support #5743
  • [dart-dio] Fixes --model-name-suffix having no effect #5669
  • [dart-dio][client] Handle x-www-form-urlencoded form data #5597
  • Add listFromJson method to fix #4887 #5355

Documentation

  • [markdown] Show description when summary is missing #6159
  • [bug][html2] Fix visibility of body/response schemas #5643

Erlang

  • [Erlang-Server] security definition context changes don't propagate to handler #5751

Go

  • [go experimental] Make the array "items" attribute optional #6132
  • [Go][experimental] provide code samples in the API doc #6115
  • File return type fix #5644

Groovy

  • Fix crash issue on windows #6011

Java

  • Add HTTP signature authentication support to Java (jersey2-experimental) #6058
  • Add jersey2-experimental to Java client generator #6024
  • Fix crash issue on windows #6011
  • [Java][Client] Fix Gradle and SBT builds for REST Assured generator #5990
  • [Java][RestTempalte] Change access updateParamsForAuth to protected #5940
  • [Java] Increase java compiler stack size to handle large files #5901
  • [Java] Discriminator lookup should not be case insensitive by default #5894
  • Add date time format annotation on pojo for model query parameters #5437
  • [Java][Feign] Bug fix in @param annotation #5250
  • [BUG][JAVA][spring-mvc] Generated Code for Map of Maps #5240
  • [enhancement] [jaxrs-spec] Add builders to models #4930
  • [Java][Native] Add asyncNative option #4721

Kotlin

  • [BUG] [KOTLIN] Fix default value generation for Kotlin Strings #5776
  • [kotlin] Fix #5247 incorrect enum parameter type for arrays #5435
  • [kotlin][client] Use allVars instead of vars for Kotlin client #5396

MySQL

  • [mysql] Add OAuth2 framework tables #5807

PowerShell

  • [PS][Experimental] Add validations to model #5842
  • [PS][Experimental] use allVars to cover all properties #5835
  • [PS][Experimental] Fix array return #5822
  • [PS][Experimental] add withHttpInfo support, fix "null" return #5811
  • [PS][Experimental] Better common verb handling #5783
  • [PS][Experimental] fix passthru, use switch instead of bool #5768
  • [PS][Experimental] Add multiple server support #5741
  • [PS][Experimental] various improvements #5740

Python

  • Adds memoization and deserialization through 2 or more discriminators #6124
  • [Python][aiohttp] create venv as rule #5913
  • [Python] Fix Python UTF-8 Encoding Issue #5679

Swift

  • Fix URLSessionImplementations file upload #6043
  • Fix OpenAPI link in broken Swift4/5 README templates #6035
  • [swift5] fix warning in Swift 5.2 #5900

TypeScript

  • [TypeScript-Angular] Add AuthService example to README.md #6087
  • [typescript-fetch] Make FormData optional #6077
  • [typescript-fetch] Support deepObject query params #6075
  • [typescript-fetch] Fix map API return type #5995
  • [typescript-axios] fixed pattern data integrity #5974
  • [typescript-axios][client] Allow apiKey type Promise #5953
  • Update axios dependency to the new minor version 0.19.0 #5867
  • [typescript-axios][client] Unnecessary imports occurs when using withSeparateModelsAndApi #5797
  • Ensure model.allParents always includes model.parent #5738

Scala

  • [scala][akka-http] fix non-default packages for api, model and invoker #6129
  • [scala-akka-http] fixed date header and removed broken test due invalid v2 spec #6109
  • Fix Scala sttp generator packages #5890
  • [scala-akka-http-server] Fix a generation problem on operations with empty responses #5868
  • Minor improvements to scala akka server #5823
  • New Generator: Scala akka-http server #5758
  • Fix scala-akka java8 serializers #5742