v5.1.0, the first minor release after the v5.0.0 major release, contains breaking changes with fallbacks, security fixes, new generators and more. For a full list of changes, please refer to https://github.com/OpenAPITools/openapi-generator/pulls?q=is%3Amerged+is%3Apr+milestone%3A5.1.0+

Below are some highlights of the changes:

General

  • Adds getAdditionalPropertiesIsAnyType to java schema classes #8908
  • Correct use of loggers with placeholders and remove some redundant operations #8842
  • [maven plugin] fix security issues #8795
  • [online] use Files.createTempFile to address security concerns #8788
  • Add an option to skip operation examples #8731
  • [Gradle Plugin] Allow to set additional property of any type. Useful for Boolean values #8507

Documentation

  • Use Files.createTempFile in asciidoc generator tests if possible #8794

Android

  • [android][volley] various improvements #8968

C

  • [C][Client] Generate API and module documents automatically #8981

C#

  • [C#][netcore] Call static method without creating instance #8889
  • [csharp-netcore] Make Blazor Webassembly compatible #8876
  • [C#][netcore] update dependencies to newer versions #8872
  • [csharp-netcore] Fix handling of Dictionary query parameters and fix deepObject style parameter handling #8848
  • C# Netcore WebRequest and HttpClient functionality #8821
  • Add ASP.NET Core 5.0 support #8717
  • [aspnetcore] Improve model inheritance support by including JsonSubTypes to properly handle serialization #8384

C++

  • [C++][Qt]Replace usage of QVariant with a more intuitive optional wrapper #8960
  • Fix not processing enums in cpp-pistache-server #8886
  • Qt client handle deprecated #8766
  • [cpp-qt5-client ] Improve CMake #8724
  • [Qt5][C++] Adding Parameter Styling Support for Qt5 #8587

Dart

  • [dart][dart-dio] Next-gen dart-dio generator #8869
  • [dart][dart-dio] Lower upper bound for built_value #8947
  • [dart] Fix api client deserialization for json_serializable #8882
  • [dart][dart-dio] Nullable support/improvements #8727 Breaking change (with fallback)
  • [dart][dart-dio] Raise min Dart to 2.7.0 & update built_value constraint #8684

Erlang

  • [Erlang][Client] better code, update sample #8853

Go

  • [Go] bug fix (breaking), minor code format enhancement #8715
  • [GO] Add additional AWS v4 signature config options to go client generator #8706
  • [REQ] [GO] Added enumClassPrefix option to go-gin-server #8681
  • Fix generated go client cannot upload file #8393

Flash/ActionScript

  • Remove flash templates #8741

Java

  • [JaxRS] Fix ambiguous dependency #8923
  • Changed virtualan version from 1.0.0 to 2.1.7 #8910
  • [Java] use Files.createTempFile instead #8787
  • Update jackson dependencies to address security issues #8778
  • [Java][Client] JSON-B serialization support #8729
  • [webclient] bug fix to double URL encoding #8660
  • [java native][dotnetcore] Implement QueryParameter deepObject style #8563

JavaScript

  • Make JS client case sensitive wrt. reserved words #8905
  • [JS] the replace statement in parseDate is too greedy #8633

JMeter

  • [JMeter] fix header parameter naming #8861

Kotlin

  • [Kotlin][Client] create request config method #8617
  • Replace deprecated import for kotlin Parcelize annotation #8590

OCaml

  • [OCaml] Fix enum returnType in of_json.mustache for Api Impl #8631

Perl

  • [Perl] minor improvements #8967

PHP

  • [PHP] Use a valid php type for maps #8718

PowerShell

  • [REQ][PowerShell] Add additional reserved words list for parameter name in PowerShell #8935

Python

  • [python][template] move _path_to_item of simple init to avoid name error #8737

Ruby

  • [ruby] Fix syntax error #8675

Rust

  • [Rust Client] several small fixes to code generation errors #8845
  • Rust: Add support for lists (and sets) of enum values #8693
  • [rust client] upgrade reqwest crate to 0.11 #8603

Scala

  • [Scala][Finch] use Files.createTempFile to avoid potential security issues #8791

Swift

  • Fix for StackOverflow in Swift5 CodeGeneration #8672

TypeScript

  • typescript-nestjs: removed unused basePath from api.service template #8811
  • [typescript-axios] Support array query arguments #8772
  • [typescript-fetch] handle uniqueItems correctly in model and api #8695
  • typescript-node: Fixed models.mustache with for...in on an empty array #8575