5.0.0-beta2 is a pre-release before the v5.0.0 major stable release scheduled in Q3/Q4 this year. Thanks again for all the awesome contributions from the openapi-generator community.

Full list of changes (including breaking changes with or without fallback)

Below are the highlights of the changes.

General

  • Adds generator unaliasSchema method, uses it to refactor python-experimental #7274
  • [core][bug] FILES is now path relative with no prefixes #7271
  • [bug][core] Copy all attributes (not properties) on composed schemas when flattening models #7106
  • fix: update base image to maven supported #7001
  • Add 'x-generate-alias-as-model' extension to allow enabling generating alias as model per-schema #6937
  • [core] Add x-is-free-form vendor extension #6849
  • [core] Add type and format properties to model of inline response #6153
  • [online] Fix for version conflicts with springfox/boot #7102

Arvo

  • [Avro] Default value for no required fields to null #7006

C

  • [C][Client][Clang Static Analyzer] Remove the useless free operation for buffContent #7309
  • [C][Client][Clang Static Analyzer] Fix uninitialized argument value #7305
  • Fix a missing return in the C client sslConfig_create function #7217
  • C-Libcurl client: fix enum model generation #5604

C#

  • [csharp-netcore] Adding ConfigureAwait(false) using async methods call #7234
  • [ASP.Net Core] Better wordings for 'classModifier' option #7233
  • [C#][csharp-netcore] Improvement to standard code format #7206
  • Update csharp-netcore dependencies to the latest stable version #7194
  • [csharp-netcore] added cancellation tokens to async calls #7077
  • [csharp-netcore] renamed async methods to end with async #7062 Breaking change (without fallback)

C++

  • Fix string comparison in C++ UE4 client generator #7029
  • [cpp-restsdk] Enabling forward declarations also for cpp-restsdk generator #6996

Dart

  • [Dart] Treat float as double #6924
  • [dart] fix toJson does not handle complex type #6730
  • [Dart] Fix enum generation #6729

Documentation

  • [MARKDOWN] fix property and parameter names #6105

F#

  • Fix string comparison in fsharp generator tests #7052

Flash/ActionScript

  • Deprecate Flash (ActionScript) client generator #7231

Go

  • [Go] replace go generator with go-experimental generator #7337
  • Fix http bear auth documentation for go clients #7312 Breaking change (with fallback)
  • [go-server] Modified go-server templates to allow services to receive http request's context #7214 Breaking change (without fallback)
  • [REQ] Added enumClassPrefix option to Go server generation #7008
  • [Go] fix unmarshal for models with parents #6946
  • [Go]: Interface definitions for api functions #5914

Haskell

  • [haskell-http-client] avoid depending on ParseTime,FormatTime #6861

Java

  • [Spring Boot] update dependencies, mark java8 option as deprecated #7306
  • [Java] remove deprecated jackson classes #7304 Breaking change (without fallback)
  • [Java][jersey2]Support enum discriminator value in child objects #7267
  • [Play Framework] Update minor version + scala version + swagger-ui version #7200
  • [Java][Client] Use java8 OffsetDateTime for clients #7190
  • [jaxrs-spec] Fix JaxRS Spec generator additional model types #7180
  • [Java][Spring] Additional annotations with String params #7117
  • [Java][RestTemplate] useAbstractionForFiles - Use Resource interface instead of AbstractResource #7051
  • [Java] Rollback Feign version to 10.11 #7012
  • [Java] Add JsonTypeName to clients using Jackson #6995
  • [Java][RestTemplate] Use abstraction for files #6912
  • [Java] Deprecate feignVersion option #6824 Breaking change (without fallback)
  • [java][jersey2-client] Disable coercion of scalars #6811
  • Make ApiClient in retrofit2 be able to use own OkHttpClient #6699
  • [java] Intro openApiNullable property to enable/disable OpenAPI Jackson Nullable library #6154
  • Support for KumuluzEE microprofile runtime #5944

Kotlin

  • [Kotlin] Make ApiClient in jvm-retrofit2 be able to use own OkHttpClient #6999
  • [Kotlin] Rxjava3 support #6998

NodeJS/JavaScript

  • [NodeJS] Auto populate config using schema servers.url #6980
  • Update JS dependencies #6867
  • [JS] adding handling for epoch dates #6504

PHP

  • [php-slim4] Move config to a separate file #6971
  • [php-lumen] Set required PHP version to ^7.2.5 #6949
  • [php-ze-ph] Set required PHP version to ^7.2 #6763
  • [php-laravel] Upgrade php-laravel to 7.x #6346 Breaking change (without fallback)

PlantUML

  • Surpress warnings in the plantuml generator #7071

PowerShell

  • [PS] Allow CI to publish the module #7091
  • [PS] add nullable body support #6930
  • [PowerShell] support default value in models #6920

Protobuf

  • [Protobuf] Generate enum fields #7073 Breaking change (without fallback)
  • [Protobuf] Make it possible to override field numbers using x-protobuf-index #7002

Python

  • [fix][python-flask] add missing space for flask basic auth header #7031
  • [python-experimental] Removes python2 support #6991
  • Mark python2 support in Flask as deprecated #6653 Breaking change (without fallback)

R

  • [R] skip test for enum model #6936
  • [R] Enum R6Class Support #5728

Ruby

  • [Ruby] ruby client build from hash nullable #6945

Rust

  • [Rust][reqwest] prefix local variables with "local_var" #7299
  • [Rust][Client] Unify sync/async client structure #6753 Breaking change (without fallback)

Scala

  • Fix header issues for akka-scala client #7259
  • [scala][play] Update apiTrait.scala.mustache #6891
  • Sttp - wrap query params #6884
  • Improve sttpOpenApiClient generator #6684 Breaking change (without fallback)

Swift

  • [swift5] Add extension for hashable #7300
  • [Swift5] Fix Datetime default value #7003
  • Fix - Provides a default value for optional init parameters #6827

TypeScript

  • [Typescript-redux-query] Fix issue on api template when we have non empty header #7179
  • [Typescript] Import path is invalid in windows #7175
  • [typescript-axios] add promise to bearer and oauth tokens #7132
  • typescript-angular: Angular 10 support #7037
  • [TS] Fix string comparison #7027
  • [typescript-axios] switched to new URL API #6960 Breaking change (without fallback)
  • [typescript-angular] Unify authorization lookup #6953
  • [typescript-rxjs] add support for raw response and progressSubscriber #5465 Breaking change (without fallback)