github OpenAPITools/openapi-generator v7.20.0
v7.20.0 released

7 hours ago

v7.20.0 stable release comes with 140+ enhancements, bug fixes. Once again thanks for all the contributions from the community.

This release comes with 2 new generators:

  • [Terraform] New Terraform Provider generator #22949
  • C++ Httplib server codegen #21724

Below are the highlights of the changes. For a full list of changes, please refer to the "Pull Request" tab.

General

  • feat: Make model property generation deterministic by sorting alphabetically #22836
  • [Normalizer] add type information to an error message #22742

C#

  • [csharp][generichost] Added xml comments and restrict some access #22796
  • C# GenericHost Support multi targetting #22234
  • C# GenericHost remove state from TokenProvider abstract base class so it makes more sense for JIT requested tokens (for long lived ApiClients with OAuth security schemes) #22233
  • [csharp][generichost] Add HTTP client name to fix client duplicity #22118

C++

  • [cpp-qt-client]Prefix signal argument types with namespace #22921
  • [cpp-qt] Add global server index setter for all operations #22760
  • C++ Httplib server codegen (New Generator) #21724

Go

  • [go] Fix text escaping in example code generation #22841

Java

  • [java][jackson] fix double serialization of discriminator #22924
  • [BUG] [JAVA] fix validateJsonElement failing for required nullable fields #22912
  • [JAVA][FEIGN] Put back hardcoded HTTP Client but without the performance issue #22905
  • feature(jackson3) add jackson3 support for spring generator #22854
  • [JAVA-SPRING;KOTLIN-SPRING] - add possibility to override x-implements and x-kotlin-implements via config options. #22839
  • Fix Jackson Serialization of additionalProperties on java and jaxrs-spec #22366

Kotlin

  • [KOTLIN;SPRING] - add support for 'x-spring-paginated' to get closer to feature parity with java-spring codegen add 'autoXSpringPaginated' option; support x-operation-extra-annotation #22958
  • [BUG] [KOTLIN-SPRING] @HttpExchange in declarative interface does not support property placeholders #22882
  • [kotlin][jvm-okhttp4] Fix multipart/form-data with JSON content-type #22856
  • [Kotlin][Client] Migrate Enum.values() to Enum.entities #22852
  • [KOTLIN-CLIENT] fix Parent interface class having incorrect collection property type List instead of Set #22850
  • [JAVA-SPRING][KOTLIN-SPRING] - add possibility to override x-implements and x-kotlin-implements via config options. #22839
  • [kotlin-server] Add polymorphism, oneOf and allOf support #22610

PHP

  • [php-symfony] fix sequencial escape when validating a class type #22906
  • [php][php-nextgen] Fix nullability when multiple response types are possible #22827

Protobuf

  • [Protobuf] Fix Discriminator Issue and add capability Enum Extraction #22740

Python

  • Update python sdk to strip any directory traversal in filename #22965
  • Remove coding: utf-8 as that's the default already #22934
  • feat(python): enhance retry configuration in REST client #22867
  • [python-fastapi] Set python version to 3.10 #22823

R

  • [R] avoid to-JSON issues when R6 classes contain lists of R6 classes #22828
  • [R] optionally skip parsing responses to R6 objects #22705

Rust

  • Add support for ApiKey auth to rust-server #22950
  • Add support for enums of integers in rust-server generator #22915
  • fix: apply integer type fitting for Rust params #22853
  • feat: Support selective ssl/tls backend in rust-server to optionally remove openssl #22825
  • [Rust] Update reqwest to 0.13 and reqwest-middleware to 0.5 #22816
  • fix: Fix rust-server model generation following serde_valid upgrade #22737

Swift

  • [swift6][client] Remove unnecessary Combine checks #22810
  • [swift6] fix Vapor build, disable swift 5 tests on CI and enable more swift 6 tests on CI #22805
  • [swift6][client] Increase minimum supported SDK to accommodate swift concurrency #22802
  • [swift6][client] improve swift 6 thread safety #22801
  • [swift6][client] Add new hooks to OpenAPIInterceptor #22800
  • [swift6][client] mark PromiseKit as deprecated #22792
  • [swift6][client] make api calls concurrent #22790
  • [swift5][client] soft deprecate Swift 5 generator #22789
  • [swift6][client] mark some closures as sendable #22776

Terraform

  • [Terraform] New Terraform Provider generator (New Generator) #22949

TypeScript

  • fix(typescript-axios): Ignore unused parameter on JSON serializer replacer function #22858
  • [BUG][Typescript] Fix isRelativeUrl incorrectly detecting URLs containing @, -, ~, . as not relative. #22768
  • [typescript-angular] Fix inner enum reference in multi-map property type #22748
  • Add create requestOpts method to {{classname}}Interface #21709
  • [typescript] make TypeScript version configurable and default to v5 #20064

Don't miss a new openapi-generator release

NewReleases is sending notifications on new releases.