Releases: OpenAPITools/openapi-generator
v7.3.0 released
v7.3.0 release comes with 4 new generators and many bug fixes, enhancements. Below are the highlights of the release. For full release, please refer to the pull request tab
New Generators:
- feat: add java-wiremock generator #17614
- kotlin-server: Add support for Javalin #17596
- [Rust] [Server] New generator bases on Axum #17549
- Implement scala http4s server generator #17430
General
- Add operationId name mapping option #17750
- Fix require var logging, don't matchGenerated if allOf skipped #17746
- Add rule to remove x-internal in openapi normalizer #17734
- Support x-internal in models and operations #17639
- Fix null schema check for array of string in 3.1 spec #17728
- Fix allOf with a single item in inline model resolver #17683
- Fix map and free form object detection issue in 3.1 spec #17624
- fix: ExampleGenerator correctly generates allOf composed schemas #17499
Bash
- [Bash] Allow non-JSON request body payloads #17641
C
- [C][Client] Update the API doc #17540
- [C][Client] Fix enum function names not matching headers in the model… #17512
C++
- [cpp-qt-client] Fix CMakeLists.txt.mustache and CMakeLists.txt for Qt5 (fix #17712) #17721
- [cpp-qt-client] Extend the reserved keywords for Qt projects with the following words #17722
- [cpp-ue4] Fix generated code not compiling when using unique array items #17684
- [cpp-qt-client] Update minimum cmake version to 3.5 #17480
- feat: using Qt with 3rd Party Signals and Slots. Replace signals,slots and emit with Q_SIGNALS,Q_SLOTS and Q_EMIT #17067
C#
- corrected handling of "isPrimitiveType" for FormParameters #17700
- [CSharp] feat!: add useDateOnly flag #17471
Dart
- [dart-dio] includeIfNull: truefalse bugfix #17631
Go
- [go-gin-server] add a new function to the router to pass the gin context #17785
- [Go] fix unused bytes import for anyOf and oneOf models #17775
- fix: ensure models that have variables that contain a complexType of time.Time import the time module #17452
Java
- [Java] Fix default values of array-type parameters in a referenced file #17779
- [BUG] [Java] Remove deprecation and serial warnings in ApiException.java and JSON.java #17716
- add lombok model support on spring #17622
- feat: add java-wiremock generator #17614
- [BUG][java][resttemplate] Fix NPE when query param with value null is exploded #17568
- [jaxrs][cxf-cdi] make sure the imports are present for enum, if using jackson #15123
JavaScript
- [BUG][Javascript] - validateJSON not working on value 0 #17769
- Include support to Mojolicious relaxed placeholders parsing path parameters #17633
Kotlin
- Pass ObjectMapper to JacksonConverterFactory #17673
- kotlin-server: Add support for Javalin #17596
- Fix Kotlin templates to be compatible with Kotlin K2 compiler #17466
Perl
- feat(perl): Update agent to use version constant #17665
- Add auto-generated cpanfile in Perl client #17662
- [Perl] Update _test.mustache templates to use done_testing #17649
PHP
- [PHP] update dependencies for php-dt generated code #17796
PowerShell
- [PowerShell] Support multiple types in Accept header #17765
Python
- [Python] deserialize enum json response #17791
- [python-fastapi] Ensure path param is ... instead of None #17532
R
- support binary response for R api client #17626
Rust
Scala
- [scala-sttp]: fix for missing EnumNameSerializer for inner enum definitions #17697
- Implement scala http4s server generator #17430
TypeScript
v7.2.0 released
v7.2.0 is the last stable release in 2023. Once again thank you for all the awesome contributions from the community.
This release comes with 2 breaking changes (with fallback) listed below.
Below are the highlights of the changes. For a full list of changes, please refer to the "Pull Request" tab.
General
- To fix infinite loop for allOf with single element in normalizer #17426
- Fix build errors in JDK 21 #17177
- OpenAPI 3.1.0 Add webhooks support #17174
- Add openapiGeneratorIgnoreList option to pre-populate .openapi-generator-ignore #17164
- Add openapi-normalizer rule to set tags to operationId #17161
- Fix missing objects when defining inline anyOf, or oneOf #17141
- Update Dockerfile (cli, online) to use eclipse-temurin:17.0.3_7-jre-focal #17139
C
- [C][Client] Use int* as int or bool type function parameter #17179 Breaking change (with fallback)
C++
- [cpp-qt-client] pass QString by const reference instead of by value #16793
C#
- [csharp][generichost] Handle obsolete params and methods #17344
- [csharp] Do not inherit additional properties #17140
- [csharp] Disabled GetHashCode generation #17039 Breaking change (with fallback)
Dart
- [BUG] [dart-dio] Support for Analyzer configuration options changes in Dart 3 #17099
Java
- [webclient] explode query parameters support #17441
- Implementing retry logic to restTemplate #17375
- [JavaSpring] Enable scopes for all security scheme types #17083
JMeter
- [jmeter] Fix exception when operationId has $ #17125
Kotlin
- [kotlin-client] New generator: kotlin-jvm-spring-restclient (new library) #17366
- [kotlin-client][multiplatform] add iosSimulatorArm64 target #17058
Go
- [go-server] Add ability to handle nullable query parameter #17321
- [Go] fix validation of property names when a model has required fields and doesn't allow additional properties #17267
PHP
- Fix PHP constructor docblock #17324
- Fix parameter names in Configuration #17305
- Add enum name mapping support to PHP generators #17195
- [PHP-NG] check if json_decode was able to decode response #17120
- [PHP-NG] convert data to string before giving it to preg_match #17119
Postman
- [POSTMAN] Skip escaping request name #17394
PowerShell
- Use $Response.Content for deserializing response #17342
Python
- [python] Fix exception in request body with enum ref #17438
- [python] fix: Annotate free-form object as dict in Python #17082
- [python][Feat] Deserialize error responses #17038
- Add socks5 proxy support for OpenAPI generated python client #16918
Ruby
- Ruby Client for Faraday: fix file downloading #17333
- [Ruby] Add model name mapping support to ruby client generator #17408
Rust
- Add enum name mapping feature to the Rust generators #17290
- include {min|max}Items validation in rust-server models #17201
Scala
- Add scala-pekko client generator (new generator) #17417
- [scala-akka-client] Scala Akka client does not support arbitrary query string parameters #17386
Swift
TypeScript
- fix(typescript-axios): use baseURL of (custom) axios instance #17296
- Generalized mime type support #17285
- [typescript-axios] Upgrade to axios@^1 #14518
Zapier
v7.1.0 released
v7.1.0 is the first release with breaking changes (with fallback) after the major release v7.0.0 in Aug 2023.
Breaking changes with fallback:
- [csharp][generichost] Implement not required nullable properties #16810
- [PYTHON] generate code based on pydantic v2 #16685
- Change default value of 'pathParamsAsVariables' config option #16404
For the highlight of changes, please refer to the list below. For a full list of changes, please refer to the "Pull Request" tab.
General
- Fix oneOf merging, upgrade dependencies #16992
- Better handling of allOf in request body #16991
- Better handling of API response in 3.1 spec #16986
- Better isAlias detection #16943
- Fixed indent lambda to not strip line breaks #16930
C
- [C] map set to list, add tests #16730
C#
- Update C# dependencies to newer versions, update reserved word list #16996
- [csharp] Introducing the enumPropertyNaming option to the C# Generator #16981
- [BUG][aspnetcore] Fix ASP.NET Core server DateTimeOffset type mapping #16653
Dart
- [dart-dio] Add toString in Enum on json_serializer #15387
Go
- [GO] Add support for model name mapping for go #17023
- [Go][Server] FormParams - Generic Array Type Handling #17001
- [Go] add generateMarshalJSON key for additional-properties settings #16962
- [Go] Add multiple file upload support #16956
- [Go] validate required fields when unmarshalling JSON #16863
Java
- Add optional parameter for request body #16972
- [Server][Spring] fix support interface and implementation classes for API controllers #16945
- [Java][okhttp-gson] fix validateJsonElement not validating enum values #16865
- [JAVA] fix: oneOf generates incorrect model for primitive types #16834
Kotlin
- [kotlin][client] Fix compilation error when all auth method is mapped to null #16861
- Add kotlin-spring beanValidation for RequestBody parameters #16859
- [Kotlin] ktor JSON serialization handling #16843
N4JS
- [N4JS] Fix issue with broken module names in case of same names #16937
PHP
- [php-symfony] Fix type hint for array in comments #16926
- [PHP] check if json_decode was able to decode response #16879
- [php-nextgen] fix object serializer, update tests #16764
- [php-next-gen] fix handling with enums in object serializer #16741
Postman
- [POSTMAN] [BUG] Correct order of the Postman requests #16983
Python
- fix parameters_to_url_query returns booleans with upper letter #16947
- [python] add circular reference import #16940
- [python] Fix postponed model imports #16882
- [Postman Collection] Fix path parameter syntax #16827
Ruby
- [ruby|client] Fix unmarshalling errors of enums inside other objects #16900
- [ruby] Make File Downloads Threadsafe #16876
Rust
- chore(deps,rust): requires reqwest 0.11 in blocking generated code #16927
- fix(rust-server): remove redundant clone #16906
TypeScript
- [typescript-axios] Fix Explode Query Parameters #16898
- [typescript-axios] Add Support for Operation Servers #16782
Zapier
v7.0.1 released
v7.0.1 is the first patch release after the v7.0.0 major release 3 weeks ago. More than 100 PRs have been merged based on the feedbacks of our users who have upgraded to the latest v7.0.0 release.
One important enhancement is beta support for OpenAPI specification v3.1.0.
For a list of changes (bug fixes, enhancements), please refer to the PR list.
v7.0.0 released
We're happy to announce the release of v7.0.0 - a major release with lots of enhancements and bug fixes including breaking changes without fallback. More than 500 PRs contributed by the awesome OpenAPI Generator community have been included in this release.
For a list of breaking changes, please refer to the following:
New Generators:
- Add Zapier generator #15997
- Sttp4 client generator #1583
- [swift] New 'swift-combine' client generator for swift #15823
- [kotlin] New 'jvm-spring-webclient' library #15568
General
- Support library option via additionalProperties #16242
- [Default] update isAdditionalPropertiesTrue tag to cover more types #16227
- Add isJson, isXml to consumes, produces #16085
- Use openjdk official docker image in openapi-generator-online #15964
- fix security features listed in documentation - remove openID Connect included by default #15773
- [openapi-normalizer] Support normalizing null types using OAS 3.1 syntax #15698
- Fix extensions handling for allOf with single schema #15632
- Update to JDK11.
Breaking change (without fallback)
#15553 - [openapi-normalizer] enable some rules by default
Breaking change (with fallback)
#15501 - Use enum type for discriminator #13846
asciidoc
- [asciidoc] Set toc level to 4 #15481
C
- support 32bit in postdata #16238
C#
- [csharp] Fixed model property data type #16315
- [csharp] Update RestSharp to 110.2.0 #16122
- [csharp] Enable setting of RemoteCertificateValidationCallback through IReadableConfiguration #15979
- [csharp][generichost] Added value converter class #15970
- Rename csharp-netcore to csharp
Breaking change (without fallback)
#15903 - [csharp-netcore][generichose] Use correct name for enum while serializing #15742
- [csharp-netore][generichost] Renamed ToModel to AsModel.
Breaking change (without fallback)
#15662 - [aspnetcore] Adds {{>partial_header}} to missing mustache files #15616
- [csharp] Fix property names.
Breaking change (without fallback)
#13681
C++
Crystal
- Add mapping features to crystal client generator #16253
Dart
Elixir
- Elixir: Switch Poison to Jason #16061
Eiffel
- [Eiffel] fix Eiffel schema lookup, clean up outdated samples #15901
Grovvy
- [groovy] support enum generation in groovy client #15619
Go
- [go] fix issue that tempfile is not deleted #16303
- [Go] Update go-echo-server generator to respect the --git-host argument #15720
- [Go] Update API naming to follow Golang standard pkg (1 line change).
Breaking change (with fallback)
#15331
Haskell
- [haskell-servant][haskell-yesod] Fix specialCharReplacements #16289
Java
- [JAVA] [WebClient] Handle list of String special case in WebClient generator #16326
- [spring] fix void return type for useResponseEntity: false #16230
- Support for multipart/form-data; charset="utf-8" in Java GSON Generator #16211
- Fix import for spring boot 3 #15949
- Fix cli options use tags and api name suffix.
Breaking change (without fallback)
#15936 - spring: fix spring pageable used without any config.
Breaking change (without fallback)
#15113 - [java] remove fullJavaUtil option.
Breaking change (without fallback)
#15033 - Fix additionalProperties in spring generator.
Breaking change (without fallback)
#11572
JavaScript
- Use substring instead of substr in JavaScript and TypeScript generators #15937
Julia
- [Julia] correct handling of POST data encodings #16149
Kotlin
- [kotlin-client][multiplatform] Added support enum query parameter #16327
- [bug][kotlin] sanitize model names according to convention.
Breaking change (with fallback)
#16267 - [kotlin-server] add support for jakarta ee namespace #15593
- [Ktor] Update generator to latest Ktor version.
Breaking change (without fallback)
#14296
PHP
- PHP - Permit to customize more composer.json parts #16012
- [PHP-Symfony] Fix Symfony warning on OpenAPIServerBundle #15960
Postman
- [POSTMAN] Mark request header as disabled #16028
- [Postman Collections] Keep original header name #1590
Python
- Rename python-nextgen to python.
Breaking change (without fallback)
#15504 - Decommission python client generator #15486
- Decommission python-legacy, python-prior client generators #15475
- [python-fastapi] Added a base class for the actual implementation.
Breaking change (without fallback)
#14470
R
Rust
- Rust validation handling #15288
Scala
- [Scala] scala-akka-http-server support pekko-http using useApachePekko flag #16255
Swift
- [swift] to support application/octet-stream for file upload #16299
TypeScript
Xojo
- [xojo] fix use of isBasic #15761
v7.0.0-beta
A list of breaking changes:
- With fallback: https://github.com/OpenAPITools/openapi-generator/pulls?q=is%3Apr+is%3Amerged+milestone%3A7.0.0+label%3A%22Breaking+change+%28with+fallback%29%22
- Without fallback: https://github.com/OpenAPITools/openapi-generator/pulls?q=is%3Apr+is%3Amerged+milestone%3A7.0.0+label%3A%22Breaking+change+%28without+fallback%29%22
What's Changed
- Generate and use enum types in parameters for typescript-axios by @chaayac in #13438
- [swift5] update new minimum OS supported versions by @4brunu in #13667
- [Typescript] Enums generation (7.0.0) by @ksvirkou-hubspot in #14663
- [swift5][client] improve headers order by @4brunu in #14636
- [swift5][client] remove deprecated APIs by @4brunu in #14635
- Added converterFactories property to ApiClient in jvm-retrofit2. by @dylan-kwon in #15008
- [go-server] Change Routes type from
[]Route
tomap[string]Route
by @lwj5 in #15084 - [go-server] Update dependencies and use generics by @lwj5 in #15087
- Improve Go Github workflow by @wing328 in #15200
- [go-server] Fix: name declared and not used by @lwj5 in #15201
- [kotlin][client] Use Kotlin code style in parameter enum class names by @WonderCsabo in #15447
- [typescript] Add missing types field to export declaration by @bodograumann in #15403
- [csharp-netcore][generichost] Moved deserialization logic to template by @devhl-labs in #15474
- [JAVA] fix "text/plain" with charset specification by @martin-mfg in #15399
- Encode a
Set
intoJson()
properly by @noordawod in #15435 - Decommission python-legacy, python-prior client generators by @wing328 in #15475
- Correct name of script in PULL_REQUEST_TEMPLATE.md by @gcatanese in #15480
- [Go] Update API naming to follow Golang standard pkg (1 line change) by @lwj5 in #15331
- [csharp-netcore][generichost] Fixed the order to match the constructor by @devhl-labs in #15500
- Decommission python client generator by @wing328 in #15486
- [csharp] Changed enums to start from 0 by @devhl-labs in #15503
- Fix Go client tests by @wing328 in #15505
- [kotlin-spring] interfaceOnly=true flag skips spring-boot plugin repackage goal by @zaenk in #15495
- [Spring] remove deprecated annotation from no-args constructor (fix #15478) by @borsch in #15512
- import @Valid in Spring delegates by @martin-mfg in #15330
- Rename python-nextgen to python by @wing328 in #15504
- [xojo] rename private method to avoid confusion by @wing328 in #15508
- [openapi-normalizer] enable some rules by default by @wing328 in #15501
- [csharp-netcore] Zero based inner enum sample by @devhl-labs in #15506
- [csharp-netcore] Removed extra line break by @devhl-labs in #15507
- [asciidoc] Set toc level to 4 by @jvmlet in #15481
- Fix JsonNullable issue for Helidon generators by @aserkes in #15423
- Bugfixes/12952 fix newtonsoft using by @JFCote in #15515
- Minor enhancements to the aspnetcore server generator by @wing328 in #15518
- [javascript] fix use of isBasicBasic and isBasicBearer conditions by @tiffmaelite in #15522
- [C++][Pistache] Generate empty JSON object instead of a null value by @sjoubert in #15468
- [C++][Pistache] Add missing 'override' on virtual methods by @sjoubert in #15469
- Update modelbase-header.mustache by @SuperGNUS in #15453
- [Spring] fix use of isBasic condition by @tiffmaelite in #15530
- Fix warning when building because of the missing documentation by @JFCote in #15543
- add HTTP signature to SecurityFeature by @tiffmaelite in #15542
- add missing security schemes to new generator README template by @tiffmaelite in #15536
- Postman Collection Generator by @gcatanese in #15294
- Fix the bug that the property generateApis always true by @iWantUss in #14126
- [csharp-netcore] Updated package versions by @devhl-labs in #15173
- [Gradle] add
inputSpecRootDirectory
for generate task by @borsch in #15548 - [dart][dio] fix features of dart-dio generator by @tiffmaelite in #15537
- [Aspnetcore] Fix nullable warnings part 1 by @JFCote in #15555
- [csharp-netcore][generichost] Added OrDefault method by @devhl-labs in #15551
- Fix incorrect generic type in go-server codegen template by @dimavt in #15557
- Add workflow to test builds and Gradle plugin on Windows by @wing328 in #15562
- [go-server] Add tests for boolean query parameter by @wing328 in #15563
- [kotlin-server] fix bean validation site targets by @stephan-strate in #14997
- Improve build time by @wing328 in #15566
- [kotlin-spring] Fix inheritance compile error because of missing use-… by @superbob in #15488
- [lua] fix use of isBasic condition by @tiffmaelite in #15529
- [xojo] fix use of isBasic condition by @tiffmaelite in #15526
- [eiffel] fix use of isBasic condition by @tiffmaelite in #15533
- [android] fix use of isBasic condition by @tiffmaelite in #15528
- [powershell] fix use of isBasic condition by @tiffmaelite in #15525
- [PHP] fix use of isBasic condition by @tiffmaelite in #15520
- [perl] fix use of isBasic condition by @tiffmaelite in #15524
- [bash] fix use of isBasic condition by @tiffmaelite in #15521
- [Ada] [Java] fix Codegen copies by @tiffmaelite in #15513
- [cpp C++] fix use of isBasic condition by @tiffmaelite in #15535
- [Kotlin] Fixed additional property omitGradleWrapper for kotlin generator by @stefankoppier in #15584
- Improve Appveyor tests by @wing328 in #15585
- Revert "Fix the bug that the property generateApis always true" by @wing328 in #15588
- Update to JDK11 by @wing328 in #15553
- Update pom.xml with new plugin, setting by @wing328 in #15590
- [Ktor] Update generator to latest Ktor version #14061 by @rsinukov in #14296
- Set maven to 3.9 in Github workflow by @wing328 in #15592
- [csharp-netcore][generichost] Used default cancellation token by @devhl-labs in #15594
- [java] remove fullJavaUtil option by @martin-mfg in #15033
- [dart] fix use of isBasic condition by @tiffmaelite in #15523
- [Java] [Kotlin...
v6.6.0
v6.6.0 release comes with bug fixes, enhancements and 2 new generators:
New Generators:
There are 2 breaking change with fallback:
- [csharp-netcore] Explicitly implement IValidatableObject #15160
- [python-nextgen] Add support for union of StrictFloat and StrictInt #15124
For the highlight of changes, please refer to the list below. For a full list of changes, please refer to the "Pull Request" tab.
General
- [openapi-normalizer] Fix nullable boolean check in oneOf schema #15276
C#
- [csharp-netcore] Better handling of oneOf/anyOf with duplicated data type #15377
C++
- Fix request parameter encode call #15313
- [C++][Pistache] Generate API generalization interface #15279
- [cpp-ue4] Fix multi collection format has duplicated prefix #15260
Dart
Elm
Go
- [go-server] Fix: name declared and not used #15201
- [go-server] Update dependencies and use generics #15087
- [go-server] Change Routes type from []Route to map[string]Route #15084
Java
- [BUG][JAVA][restTemplate] ApiClient is not compatible with spring-web 6 Observation API #15421
- [java][resttemplate] Add property for config removal of @component from ApiClient and Api classes #15416
- [Spring] fix Paginated without params (fix #15265) #15315
- [java][Jersey2/3] Probe content type for multipart upload parts #14965
Kotlin
- [kotlin][client] Use Kotlin code style in parameter enum class names #15447
- [Kotlin-Spring] add Kotlin based Spring Cloud OpenFeign generator #15048
N4JS
- Support language N4JS (New generator) #15397
PHP
- [php-nextgen] Add @generated tag to DocBlocks #15106
- [php-nextgen] Rename folders to follow PDS skeleton #15102
Python
- [python-nextgen] support constructor with position argument in oneOf/anyOf model #15434
- [python-nextgen] Add ApiResponse object #15367
- Mark python-nextgen client generator as stable #15360
Ruby
- [Ruby] fix RSpec documentation URL #15164
- [Ruby] Client: fix base_url when no server_operation_index is defined #15162
Swift
- Using @objcMembers to expose all properties and functions to ObjC #15188
Xojo
- Add Xojo client generator #15194
v6.5.0
v6.5.0 release comes with many bug fixes and enhancements such as several new rules in OpenAPI Normalizer
There's one breaking change with fallback: [Java][Spring] option whether to generate required args constructor #14941
For the highlight of changes, please refer to the list below. For a full list of changes, please refer to the "Pull Request" tab.
General
- Add isOverridden, update Java pojo with setter for parent properties #15051
- Add new openapi-normalizer rule REFACTOR_ALLOF_WITH_PROPERTIES_ONLY #15039
- Better allOf handling in fromProperty #15035
- Do not add schema / class name mapping where custom mapping exists #14984
- [OpenAPI Normalizer] update SIMPLIFY_ONEOF_ANYOF to convert enum of null to nullable #14898
- Add new openapi-normalizer rule: ADD_UNSIGNED_TO_INTEGER_WITH_INVALID_MAX_VALUE #14891
- Better support of inline allOf/anyOf/oneOf schemas #14887
- [openapi-normalizer] add a new rule to set tags for all operations #14794
- Add rule to simplify oneOf/anyOf #14777
- Add rule to simplify boolean enum #14764
- [openapi-generator-online] Revert spring boot back to 2.5.14 #14755
C#
- [csharp-netcore] Better handling of form parameters #15040
- [csharp-netcore] Moved null checks from constructor to JsonConverter #14980
- Decommission csharp-dotnet2 client generator #14911
- [csharp-netcore] add options dateFormat, dateTimeFormat to customize the format #14894
- [csharp-netcore] Add unsigned integer/long support #14885
- [v2] (RFC) Csharp netcore generator supports UnityWebRequest library #14870
C++
- [C++][Pistache] Add some missing {{declspec}} on classes and functions #14808
- [Bug][C++-cpprest] Encode request parameters to enable whitespace characters #14797
Erlang
- [erlang-client] fix URL paths #14988
- [erlang-client] Fix url path generation being passed to hackney_url #14821
Go
- [GO] [REQ] Enable bearer security schema for Go client #14957
Java
- [JAVA][NATIVE] Fix NPE for form values request builder #15036
- Added Micronaut configuration points #15005
- [java] fix optional array property's default value #14961
- [spring] fix default value for nullable containers #14959
JavaScript
- [JS] Update optional parameters in jsdoc #15032
K6
- [K6] Enhancement: Make operationId accessible inside requests #14787
Kotlin
- [Kotlin-Spring] Remove wildcard imports from mustache templates #14899
PHP
Python
- [python-nextgen] use
__fields_set__
to determine if the field is needed in to_dict #15086
Rust
- [RUST] Upgrade reqwest-middleware #14819
- [Bug][Rust] fix: removes replacement which makes x-tag-name incompatible with spec #14746
- [rust-server] Fix clippy warnings #13907
Swift
- [swift5] fix modelNamePrefix and -suffix for reserved types #14768
- [swift5][client] improve headers order #14636
TypeScript
v6.4.0 released
v6.4.0 released with bug fixes and enhancements. As usual we appreciate the contributions from the OpenAPI Generator community.
For the highlight of changes, please refer to the list below. For a full list of changes, please refer to the "Pull Request" tab.
General
- fix: Inline model schema's name is wrong #14687
- Add 'endsWith' handlebars helper function #1463
- Preserve order of securitySchemes #14536
C#
- [csharp-netcore] Use scheme from base address #14685
- [csharp-netcore] Fixed format of Date serialization #14616
Dart
- [dart][dart-dio] Add deprecations on models and fields #14676
- [dart][dart-dio] Bump Dio to 5.0.0 #14675
Go
- [Bug][Go] consider allOf schemas for rendering string default vaules #14684
- [Go] properly set header parameters on api clients #14637
Java
- [BUG][JAVA][SPRING] Fix serialization when there is a discriminator with mapping #14733
- Fix toUrlQuery string method in anyOf models in java native client #14715
- [Java] fix default value for JsonNullable #14703
- [Fix] take numeric types into account for array defaults #14694
- [java][apache-httpclient] update httpclient dependency to the latest 5.x #14673
- [Java/Microprofile] Add support for Jackson serialization & async #11554
JavaScript
- [JAVASCRIPT] Fix inconsistent validateJSON and validateJsonObject calls, breaking object validation #14720
Kotlin
- ktor-client add toString() for generic params #14717
Python
- [python-fastapi] update starlette to newer version #14700
- [python-nextgen] better datetime support in parameters #14621
- [python-nextgen] optionally support float strict type #14618
R
- R] Fix escaping in templates #14572
Ruby
- Set proxy in ruby faraday client if configured #14597
Rust
- [rust] Fix content-type in templates #14702
v6.3.0 released
v6.3.0 is a minor release, which contains breaking changes with fallback. As always we appreciate the contributions from the community.
We've added 4 new generators:
- Added Julia client and server generators #14520
- Add a new Python client generator - python-nextgen #14157
- Add a new jetbrains http client generator #14477
For the highlight of changes, please refer to the list below. For a full list of changes, please refer to the "Pull Request" tab.
General
- Add OpenAPI Normalizer #14172
- Add a rule to keep only the first tag Enhancement: General OpenAPI Normalizer #14465
- Add isEnumRef, isEnumOrRef to CodegenProperty #13880
- Update project dependencies - root, openapi-generator #13881
- Use Gradle 7.6 to build Gradle plugin #13860
- Nullable subschemas #13850
- Cleanup outputDir before openApiGenerate (Gradle plugin) #13659
C
- [C][Client] Allow cJSON_IsNull() for a string if it is not mandatory #14332
- [C][Client] Always send integer or boolean query parameters to the API server #14019
C#
- [csharp-netcore] Added isNew property to CodegenProperty #14412
- [csharp-netcore] Removed net5, added net7 #14003
C++
- [cpp-qt-client] Fix warnings #14056
Crystal
- [Crystal] Skip primitive types from ModelImportMap #14436
Dart
- [dart-dio] Fix non legacy discriminator behavior #14291
Go
- [Go] Adds a sha256 configuration option to hs2019 #14467
- [Go] Client Models using AllOf, OneOf, or AnyOf Correctly Include time and os imports #14459
- [Go] [Client] Don't Explode Query Params #14447
Haskell
- [haskell][server] Include response headers in the API type #13565
Java
- [java][native] Fix urlQuery string method in oneOf #14488
- [Java][native][apache-httpclient] Update toUrlQueryString to support form style for object #14478
- [Java][Spring] fix ParameterObject import for Spring Boot 3 #14454
- [java][microprofile] implement useRuntimeException #14414
- [Java][Spring] Fix #14398 springboot 3 schema required #14402
- Add deepObject query string support in Java native client #14378
- [Micronaut] Improving micronaut-model and micronaut-client generation #14065
- Add Spring 6 HTTP interfaces #14485
JavaScript
- [JavaScript] fix boolean in oneOf, add tests #14380
Kotlin
- [kotlin][client] add info if endpoints requires authentication or not #14445
- [KOTLIN] feat: adds maven-publish to 'kotlin' client generator #14344
PHP
- [PHP] \GuzzleHttp\json_encode is deprecated, use \GuzzleHttp\Utils::jsonEncode instead #14323
- [PHP] better PHP symfony test #14117
- [#13998][Bug][PHP] Move isNullable section to the top of the setter function in templates #14005
Python
- [python] Fixes Response TypeError #14299
- Add a new Python client generator - python-nextgen #14157
- [python] Fixes Configuration w/ access_token at initialization #14153
- [python] fixes addProps sometimes breaks #14102
- [python] exposes deserialized bodies for non-2XX responses #14095
- [python] Issue 13997 fix pass in model instances to new #14067
- [python] fixes bug where v2 specs generate clients when they should not #13996
- [python] fixes enum naming bug #13985
Ruby
- [ruby] Fix api_error.mustache to initialize message-only errors properly #14264
- Enable access token refresh #14251
- Update Ruby minimum version to 2.7 #14002
Rust
- [rust] Fix declaration for arrays with object and array references #14198