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

5 hours ago

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

The community also contributed 3 new generators in this release:

  • [python] add async httpx support Client: Python #22021
  • feat: Add Java Dubbo code generator for Apache Dubbo microservices #21968
  • New generator for Scala3 + sttp4 + jsoniter-scala #21908

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

General

  • Update commons related dependencies to newer versions #21980
  • Correctly annotate Gradle task in- & outputs and enable stricter plugin validation #21957
  • Support normalizing anyof/oneof enum constraints to a single enum #21917
  • feat: add support for minimal-update option in maven plugin #21872
  • Update swagger parser to 2.1.32 #21818
  • Fix bug in ModelUtils.getParentName resulting in wrong inner Models for oneOf-composed schemas #21799
  • [3.1] Fixed lack of check for booleanSchemaValue #21742

Bash

  • [bash] Drop old client.sh from petstore sample #21987
  • [bash] Fix issue where paste command doesn't work on Mac #21986

C#

  • Fix visibility for enum in C# generator #21984
  • [C#] Fixes array TypeDeclaration parsing order to fix deep aliases #21600

Dart

  • [dart-dio][timemachine] Bugfix: saving offset_date_serializer instead of local_date_serialize #21974
  • Add skipCopyWith option for dart-dio #21816

Kotlin

  • fix(kotlin-spring): add missing constructor parentheses for hashmap models #22029
  • [kotlin] Fix enum defaultValue in query parameters with schema reference #22002
  • [kotlin][client] remove old deprecated apis #21988
  • [kotlin-spring][server] Feat: Allow implementation of arbitrary interface in DTOs (similar to x-implements from java-spring) #21950
  • Fix missing @serializable on enums for kotlin/jvm-retrofit2 #21907
  • [kotlin-client] Fix string comparison in discriminator post-processing #21881
  • [kotlin-client] update Kotlin and libraries versions #21866
  • Kotlin Multiplatform polymorphism with custom discriminator support #21772

Go

  • go: Fix missing imports for optional body params #22014
  • feat(golang): support for wrapped and xml name #21899

Java

  • [JAVA] Add vendorExtensions.x-class-extra-annotation to oneOf interfaces #22020
  • [cxf] add support for Swagger2 #22010
  • [java] Fix annotationLibrary option being ignored #21992
  • [Java] [Spring-client] Exclude discriminator from nullable annotation #21981
  • feat: Add Java Dubbo code generator for Apache Dubbo microservices #21968
  • [jaxrs-spec][quarkus] Feat: Add an option to use "org.jboss.resteasy.reactive.RestResponse" #21877
  • [Java] [Spring] Use deduction configOptions for oneOfInterfaces #20919

OCaml

  • [Fix][OCaml] Incorrect encoding/decoding for required free-form objects; Odoc for record fields #21819
  • [OCaml] Generate .ocamlformat file; format all generated OCaml files #21809
  • [OCaml] Introduce support for oneOf/anyOf, fix default value for non-required maps #21798

PHP

  • Fix php-slim4 API key authentication throwing exception #21962
  • Setup void type for PHP Symfony CompilerpassInterface #21808
  • [php] Fixed typing of offsetGet/offsetSet/offsetUnset #21583

ProtoBuf

  • [protobuf] fix generation of enums with UNSPECIFIED values #21774

Python

  • [python] add async httpx (new library option) support #22021
  • [python] api client type checks #21935
  • fix(python): update pyproject.toml license format with poetry1 fallback #21931
  • [python] fix default value when enum is a reference #21923
  • python: feature flag for lazy imports #21885

Ruby

  • fix(ruby-client): Fix incorrect boolean parsing in OneOf/AnyOf #21943

Rust

  • [Rust-Axum] Support AnyOf, AllOf #21948
  • [Rust] Add support for native-tls and rustls-tls Cargo features for the reqwest library #21925
  • [BUG][rust-axum] Fix duplicate route operations when supplying multiple tags on a path with a camelCase param #21873
  • [rust] set useAsyncFileStream only for files in the body #21839

Scala

  • Mark scala-lagom-server as deprecated #21977
  • New generator for Scala3 + sttp4 + jsoniter-scala #21908

Swift

  • [Swift6][client]Make Swift 6 generator stable #21846

TypeScript

  • [typescript-axios]: withSeparateModelsAndApi handles importFileExtension #22032
  • [Typescript] add missing typeRoots config on tsconfig #21824
  • typescript-fetch: Fix model date crash #21821

Don't miss a new openapi-generator release

NewReleases is sending notifications on new releases.