v7.11.0 stable release (breaking changes with fallbacks) comes with 150+ enhancements, bug fixes. Once again thank you for all the awesome contributions from the community.
This release comes with 3 breaking changes (with fallback).
This release comes with 1 new generator:
- Added PostgreSQL schema generator (BETA) (New generator) #20255
Below are the highlights of the changes. For a full list of changes, please refer to the "Pull Request" tab.
General
- [normalizer] Better handling of schema with just description (any type) #20461
- Set removeEnumValuePrefix to false by default (Breaking change (with fallback)) #20452
- On enum name sanitize, convert colon to underscore (Breaking change (with fallback)) #20391
- Various enhancements, bug fixes to default codegen and maven plugin #20388
- fix (DefaultGenerator): Handle "$ref" parameter reference to identify parameter ID #20240
- Trim the input of operationId filter in OpenAPINormalizer #20189
- Resolve inline schemas in webhooks #20165
C
- [C][Client] Make custom CMAKE_C_FLAGS work #20432
- C overhead fixes #20402
- [C][Client] Remove broken intToStr() macro, update samples #20383
- Fix a few issues with the C generator (part 8) #20378
- Fix a few issues with the C generator (part 7) #20366
- Fix a few issues with the C generator (part 6) #20332
- Fix a few issues with the C generator (part 5) #20313
- Fix a few issues with the C generator (part 4) #20289
- Fix a few issues with the C generator (part 3) #20269
- Fix a few issues with the C generator (part 2) #20227
- Fix a few issues with the C generator (part 1 version 2) #14434
C#
- [csharp] Removed .net6 and .net7 (Decommission) #20449
- [C#] avoid duplicated header in csharp client (restsharp) #20421
- [ASPNETCORE] Add support for central package version management #20403
- [csharp] bump version to .net8 #20384
- Fixes body of FormParameters in multipart/form-data requests without files sent by generated C# (RestSharp) #20351
- [csharp] add .net9 support #20270
C++
- [cpprestsdk] Implement Enum inside Objects #19919
Elixir
- Improved Elixir Atom Generation #20229
- [elixir] Update dialyzer spec #20024
- [Elixir] Use string headers #19759
Elm
- [Elm] Fix not compiling all elm files in test suite #20191
- [Elm] Fix not sanitizing param name #20171
- [Elm] Add missing operation summary #20147
Erlang
- Erlang server – minor fix to return type and generated doc #20197
- Updated README.mustache template for the Erlang server generator #20138
Go
- [BUG] [Go-server] invalid composite literal type string #20467
- Update crypto dependencies to newer versions in go-gin-server #20326
- [BUG][GO] use value receiver for JSON marshal #19962
Java
- [JAVA] Address
rawtypes
andthis-escape
warnings in generated API clients #20466 - Adds @nullable annotation to Spring Boot generator #20345
- Depend on jackson-jakarta-rs-json-provider when useJakartaEe is true in build.gradle for Java resttemplate generator #20322
- Fix bug in common path prefix calculation in Helidon generators #20310
- [Java] Add option to fallback to legacy enum naming #20172
- [Java] [Microprofile] Add Json-B polymorphism type info annotations #20164
- Deprecate micronaut openapi generator (Decommission) #20107
- [Java] Remove bean validation annotations on builder #19580
JavaScript
- Add option skipDefaultUserAgent to skip setting user agent in JS client #20367
Julia
- Fix Julia template for binary string #20355
Kotlin
- Bump Ktor to 3.0.3 for Kotlin client #20410
- [kotlin-spring] Adds useFlowForArrayReturnType option for reactive mode #20409
- Add gradle wrapper v8.1.1 to kotlin-spring #20341
- [kotlin][client] add option to support non-ascii headers in okhttp #20331
- [kotlin][client] support text/plain in okhttp #20250
- [Kotlin Server] Update Ktor to the next major version 3 #20245
- fix: register gson CustomTypeAdapterFactory in kotlin-client if generateOneOfAnyOfWrappers enabled #20217
PHP
- [php-nextgen] Use conditional access for enumref query params #20418
- [PHP][php-nextgen] Improve method parameter typing #20361
- [FIX][PHP-NEXTGEN] Missing tagged union discriminator literal #20356
- [PHP][php-nextgen] List all possible return types #20335
- [PHP][php-nextgen] Fix usage of enums in parameters #20294
- [php] Follow PHP8.4 update: declared nullable parameters explicitly #20243
- PHP8.4 comptible, php-symfony resources #20162
PostgreSQL
- Added PostgreSQL schema generator (BETA) (New generator) #20255
Python
- [Python] adjust multi-constraint dependency syntax to comply with PEP 508 #20458
- Fix package name in FastAPI README template #20371
- [python,aiohttp] Don't create persistent aiohttp.ClientSession in init #20292
- [Python] Bug Fix - model_generic templates to have valid imports for polymorphism #20273
- Fix(Python): Add custom exceptions for HTTP status codes 409 (Conflict) and 422 (Unprocessable Entity) #20251
- [python-flask] Change requestBody argument name to 'body' in controllers #20207
- [python] Encode list query params #20148
- [BUG][PYTHON] fix setup.py when no paths are specified #20098
R
Rust
- [Rust] harden against name collisions while generate cleaner rust code #20396
- [Rust-Axum][Breaking Change] Improve the oneOf model generator (Breaking change (with fallback)) #20336
- [Rust] Fixed rust keyword params in reqwest-trait library #20333
- [Rust] Added path param normalization for kebab case path params #20309
- [Rust-Axum] Fix: handling non-lowercase Header in Request/Response #20178
- [Rust-Axum] Support quotes in string literals #20176
- [Rust-Axum] Dynamically set the types of integer literals #20133
- [rust][reqwest] support binary type for download #20031
Swift
- [swift] fix: URLSession template correctly percent-encodes http body for application/x-www-form-urlencoded #20381
- [swift5] Add access control to the properties of validation rules #20380
- [swift6] Change Response to struct #20185
- [swift5] Add Identifiable conformance to supported models #20179
- [swift6] Add checked Sendable conformance to Validation structs #20150
- [swift6] Add conditional Hashable conformance to NullEncodable #20149
TypeScript
- [typescript-fetch] fix API signature return type for empty 20x responses #20249
- fix(typescript-angular): fix new angular dependency cli option usage #20247
- feat(typescript-angular): add support for Angular V19 #20205
- Fix dangerous destructuration in typescript-nestjs services #20157
- [typescript-axios] Add User-Agent Header to Default Axios #20067
Scala
- Improve handling of pekko versions in scala-akka-http-server generator #20277