v5.0.1, the first patch release after v5.0.0 major release, comes with 2 new generators: crystal client generator and ktorm-schema generator.

For a full list of changes (150+ PRs), please refer to the Pull requests tab

Below are some highlights of the changes:

General

  • Adds hasValidation to all java core Schema classes #8474
  • Adds isNull to codegenX java core classes that represent schemas #8462
  • To fix model selection using ":" as the separator #8388
  • Update maven wrapper #8305
  • Tweak regexp in underscore method #8230
  • Make frequently used IO resources autoclosable #8181
  • Remove servers urls with trailing slash #7940

Crystal

  • Add a new crystal client generator (beta) #8304

C

  • [C][Client] Fix the memory leak when a JSON of model fails to parse #8390
  • [C][Client] Disable escaping the parameter name in URL path string #8243
  • [C][Client] Add C++ reserved keywords to C-libcurl client generator #8205

C#

  • [csharp-netcore] add .Net 5.0 support #8467
  • Style fix: use correct package name in tests #8451
  • [csharp-netcore] Fixed ApiClient code generation not respecting modelPackage settings #8272
  • Fix csharp-netcore enum var name underscore and space handling #8213

C++

  • [Qt5][C++] Fixed QByteArray::toUtf8 with FILE as request body #8550
  • [Qt][C++] Updated cpp-qt5-client doc #8251
  • [Qt5][C++] Removed deprecated functions to support Qt6 #8234

Dart

  • [dart][dart-dio] Improve API & API-Client field initialization #8589
  • [dart][dart-dio] Add missing isRedirect parameter to response #8588
  • Add getters for private default Headers and authentications #8509
  • [feature][dart] Add support for uniqueItems/sets #8375
  • [dart][dart-dio] Generate the correct serializers #8357
  • [dart][dart-dio] Add missing imports for container parameters #8355
  • [dart][dart-dio] Fix collection and date default values not compiling #8306
  • [dart][dart-dio] Enable strong-mode and strict types #8231
  • [dart-dio] Serializes request bodies using a specific serializer #6384

Documentation

  • [cwiki] Added Enum documentation and fix newline problem for description #8338

Elixir

  • Add .t in spec generation of Elixir structs #8159
  • [Elixir] Adds workaround for httpc for post/put/patch requests #5682

Elm

  • Fix bugs with duplicated data type #8223

Go

  • [Go] Fix response body #8439

Java

  • Upgraded dependency versions in Java (okhttp) client generator #8604
  • Bumped Vert.x template to Vert.x 4 GA #8528
  • Remove supportJava6 option #8514
  • [Java][Client][Vertx] Use Vertx reference instead of static class in ApiImpl template #8501
  • [Play Framework] Update the bean validation to use version 2.0 #8354
  • [Java] fix generation for JavaTimeFormatter #8348
  • Javadoc + operations interface + provider for state(ful/less) handlers #8346
  • Spring codegen - fix equals and hashCode methods for byte array and binary #8345
  • [JAVA][Feign] Replace Apache oltu with scribejava #8318
  • Implement useAbstractionForFiles for webclient library #7567

JavaScript/NodeJS

  • --http-user-agent arg support in javascript generator #8531

JMeter

  • [JMeter] Support json data in csv #8461
  • [Jmeter] Support securityDefinitions #8459

Kotlin

  • [kotlin] fix Date types usages #8594
  • [Kotlin-Spring] Fix properties default value #8373
  • [Kotlin-Spring] Fix required model property deserialization #8337
  • [Kotlin-Spring] Fix optional requestBody with delegate #8299
  • Add Ktorm schema generator #7759

Nim

  • [Nim] test the petstore client in drone.io #8466
  • [Nim] bugfix for the case when path contains multiple parameters #8402

PowerShell

  • [PowerShell] minor fix to API doc #8496
  • [powershell] Fix fields null check in powershell model template #8323
  • [powershell] Fix error message templates for some field names #8321
  • Implement optional powershell verb parsing #8252

Python

  • Removes nulltype from python, updates samples #8555
  • [PYTHON] use customized default Configuration() objects if available #8500
  • [feature][python-flask] Add CORS support to python-flask server #8472
  • [python] Fixes file upload + download, adds tests #8437
  • [PYTHON] use _Endoint to allow apis to have Endpoint #8405
  • Fixes object serialization when there is an inline array property which contains a refed enum #8387
  • Stackoverflow in toExampleValue() for python client #8326

R

  • Fix auto-generated R doc #8584

Ruby

  • [ruby] Support aliasing of API keys #8124

Rust

  • Fix handling of 1xx and 3xx in Rust Reqwest #8574
  • [Core, Rust Server] anyOf / oneOf support for Rust Server #6690

Scala

  • Renamed basic authentication function in sttp client #8396

Swift

  • [swift5] URLSession: Fix memory leak of SessionDelegate #8558
  • [swift5] Fix request closure not being called #8537
  • [swift5] Fix target SDKs for Combine option #8476
  • [Swift 5] fix XcodeGen deploy target to match cocoapods #8279
  • [Swift 5] fix Multipart FormData encoding, add support for Form encoding #8275

TypeScript

  • Add typescript-nestjs client generator #8522
  • [typescript-axios] bump axios version to 0.21.1 to fix vulnerability #8445
  • typescript-fetch: fix isCollectionFormatMulti for arrays of files #8376
  • typescript-angular: add providedIn for Angular 9+ #8324
  • [typescript(experimental)] fix for Deno v1.6 #8265