openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)

APACHE-2.0 License

Downloads
51.8K
Stars
20.1K
Committers
3K

Bot releases are hidden (Show)

openapi-generator - v7.5.0 released Latest Release

Published by wing328 6 months ago

General

  • Fix method naming for openapi normalizer, openapi ignore list option #18348
  • Update parser to 2.1.19 #18298
  • [normalizer] fix schemas incorrectly skipped #18297
  • Add logic to simplify any type represented with oneof/anyof #18268
  • Fix map parameter not a container #18220

OpenAPI 3.1 spec (beta suppport)

  • Fix null check in 3.1 spec #18353
  • Better array handling in 3.1 spec #18313

C

  • [C] Optimize memory usage when printing JSON #18072

C#

  • [csharp][generichost] Fixed operation parameter handling #18322
  • [csharp] Fixed property naming convention for composed types #18312
  • [csharp][generichost] Fixed bad reference to client utils #18309

C++

  • [cpp-ue4] Handled nullable by setting the required tag, effectively making nullables optionals #18168

Clojure

  • [Clojure] Handle both types of additional properties when getting type declaration #18201

Dart

  • [dart] fix: Bearer and Basic auth interceptors case-insensitive scheme comparison #17074

Go

  • [Go] fix allOf with multiple ref and discriminator #18390
  • Update go-server template to include the conventional generated code line #18304

Haskell

  • Fix string comparison in haskell servant generator #18410
  • Haskell: JSON Query parameters #18047

HTML

  • [html2] Fix blank responses in html document #18356

Kotlin

  • Add support for modelNameMappings #18342
  • [BUG] [kotlin-spring] Fixed escaped backticks in parameters using reserved words #18318
  • Kotlin: Do not escape/sanitize quoted enum value #18305
  • [kotliln-spring] Update dataClass.mustache #18205

PHP

  • [php-symfony] Allow Symfony 7 / Remove EOL PHP / Bearer Fix #18357
  • Remove param tag for non-existent parameter in ObjectSerializer #18347

Postman

  • [POSTMAN] Deal with boolean fields #18294

PowerShell

  • [PowerShell] (multipart/form-data request) and proxy behaviour #18315
  • Fix proxy type #18166

Python

  • [python] Update docs/ Markdown files for Classes to fix form typo and correct casing for class name when calling from_dict() #18359
  • Python: Correctly serialize enum with its value #18328
  • [python] Fix circular imports on AllOf generation #18272
  • Specify named param for field defaults in Python Pydantic V1 generator #18187

Java

  • Add Mutiny support to JaxRS #18389
  • [Java] fix beanvalidation compilation failed when items type in array is int64 #18379
  • [java][okhttp-gson] Fix oneof, anyof for array type #18324
  • [JAXRS-SPEC] no @Valid annotation on simple fields #18302
  • [spring] Delegate Incorrectly generated when useOptional True #18278
  • Update spring-context and spring-web to newer version #18266
  • [JAVA][NATIVE] fix implements in oneOf/anyOf #18248
  • [Java] Update okhttp3 from 4.10.0 to 4.12.0 to fix CVE-2023-3635 #18235
  • Fix compile error in client properties configuration #18232

JavaScript

  • [javascript] fix docs example quoting #18349

R

  • [R][Client] allow to initialize enum classes without parameters #18183
  • [R][Client] fix brackets for httr2 file_params #18142
  • [R][Client] Allow API response to be NULL #18141

Ruby

  • [ruby] Use Marcel to detect content-type in form-data file upload using faraday #18243

Rust

  • [RUST-AXUM] fix generator not handling application/x-www-form-urlencoded request content #18061

Scala

  • [Scala] added new scala-cask generator for the cask framework #18344
  • scala-sttp4: fix for missing EnumNameSerializer for inner enum definitions #18160

Swift

  • [swift] Added solution for deprecated "UTTypeCopyPreferredTagWithClass" #18330
  • SWIFT5: sort query items alphabetically to allow better server side caching of requests with same URL #18239

TypeScript

  • Update versions for typescript-node and remove vulnerable test package #18334
  • Fix: in typescript fixes additionalProperties handling when extending models #18164
  • fix(typescript-axios): Serialize boolean to string in form-data file upload #18084
  • Fix: Always serialise Map and Set to object and array in typescript-axios #17790
openapi-generator - v7.4.0 released

Published by wing328 7 months ago

v7.4.0 stable release comes with 90+ enhancements, bug fixes. Once again thank you for all the awesome contributions from the community.

This release comes with 1 breaking change (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

  • inputSpec should not be mandatory when inputSpecRootDirectory is set #18000
  • Fix ClassCastException in OpenAPINormalizer on composed schemas #17912
  • Add FILTER to openapi normalizer #17859
  • Fix attributes in allOf and $ref #17836

C

  • [C][Client] Fix default enum value being -1 #18040

C#

  • [C#] fix anyof, oneof mixed primitive object parse error #17986

C++

  • [cpp-qt-client]Allow nullable parameters #17805
  • Prevent enum item names being reserved keywords #17804

Dart

  • [Dart] Make dependency on intl package less strict #17862

Go

  • [Go] fix isNil check #17870
  • Generate API files as interfaces for go-gin server #17784

Java

  • [java] Use modelNameMappings if provided #18025
  • [JAVA] Fix 3.1 generation for composed schema's with object type #18002
  • [Java][apache-httpclient] Use EntityUtils#toString instead of Scanner for deserialization #17998

Jetbrains HTTP Client

  • Major Jetbrains HTTP Client upgrade. Move to BETA #15779

Kotlin

  • [kotlin] Enum should match spec #18062 - Breaking change (with fallback)
  • [kotlin-spring] Fix cookie parameter code generation in API #17959
  • [kotlin-spring] fix BigDecimal default value failed to compile #17956

PHP

  • fix(php): update type hint in toString method #17838
  • fix(php): call selectHeaders correctly in psr-18 implementation #17832

Python

  • [python] Fix Circular imports on inherited discriminators #17886
  • Update python-fastapi dependencies to newer versions #17871

Ruby

  • fix(ruby): Detect content-type in form-data file upload using faraday (#17851) #17853

Rust

  • [Rust] [Axum] Fix clippy warning: to_string_trait_impl #17995
  • fix(rust): wrong path to model used as parameter of api #17968
  • feat(rust): support ability to disable boxed models in client #17931
  • fix(rust): oneOf generation for client #17915

TypeScript

  • [typescript-fetch] Use == to check property is null or undefined #17972
  • Use exists() to check for properties #17798
openapi-generator - v7.3.0 released

Published by wing328 8 months ago

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

  • [Rust] [Axum] Fix clippy warning #17637
    -[Rust] [Server] New generator bases on Axum #17549

Scala

  • [scala-sttp]: fix for missing EnumNameSerializer for inner enum definitions #17697
  • Implement scala http4s server generator #17430

TypeScript

  • Accept Promises for the apiKey configuration in the typescript-fetch generator #17758
  • fix typescript-nestjs services when using api_key authentication #17708
  • [typescript-axios] Add any to index type when additionalPropertiesIsAnyType is true #17625
openapi-generator - v7.2.0 released

Published by wing328 10 months ago

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

  • Fix swift5 binary upload #17422
  • [Swift5] add enum name mapping option #17297

TypeScript

  • fix(typescript-axios): use baseURL of (custom) axios instance #17296
  • Generalized mime type support #17285
  • [typescript-axios] Upgrade to axios@^1 #14518

Zapier

  • [Zapier] Updated some dependencies #17420
  • [ZAPIER] added required fields to zapier models generation #17115
openapi-generator - v7.1.0

Published by wing328 11 months ago

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

  • [zapier] Zapier generator minor fix #16845
    -[Zapier] Fixed zapier objects arrays mapping #16780
openapi-generator - v7.0.1 released

Published by wing328 about 1 year ago

v7.0.1 is the first patch release after the v7.0.0 major release 3 weeks ago. More than 80 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.

openapi-generator - v7.0.0 released

Published by wing328 about 1 year ago

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++

  • [cpp-qt-client] Fix warning #16083
  • [C++][Pistache] Serialize integer enums if possible #16080

Crystal

  • Add mapping features to crystal client generator #16253

Dart

  • Fix epoch deserialization and parsing numbers #15948
  • [Dart] Convert DioError to DioException #15783

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

  • Add mapping features to R client generator #16252
  • Fix NPE in R construct example code #15953

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

  • [typescript-nestjs] allow configuration with forRootAsync #16112
  • Add support for Angular 16 #15925

Xojo

  • [xojo] fix use of isBasic #15761
openapi-generator - v7.0.0-beta

Published by wing328 over 1 year ago

A list of breaking changes:

What's Changed

New Contributors

Full Changelog: https://github.com/OpenAPITools/openapi-generator/compare/v6.6.0...v7.0.0-beta

openapi-generator - v6.6.0

Published by wing328 over 1 year ago

v6.6.0 release comes with bug fixes, enhancements and 2 new generators:

New Generators:

  • Support language N4JS (New generator) #15397
  • Add Xojo client generator #15194

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

  • [dart-dio] fix endpoints returning null #15433
  • Drop default value when unnecessary #15368

Elm

  • [Elm] Fix printing empty notes #15238
  • [Elm] Fix List of type missing required import(s) #15171

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
openapi-generator - v6.5.0

Published by wing328 over 1 year ago

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

  • [php] Add phplint package #15054
  • [PHP-Symfony] Fixes #14930 #14933

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

  • Fix TS jQuery tests by increasing timeout #14991
  • fix(typescript-angular): fix model filename including modelNamePrefix #14859
openapi-generator - v6.4.0 released

Published by wing328 over 1 year ago

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
openapi-generator - v6.3.0 released

Published by wing328 over 1 year ago

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

Swift

  • [swift5][client] - fix combine warning #14444
  • [swift5][client] - simplify async await #14430

TypeScript

  • [typescript] Add importFileExtension option to support ECMAScript module resolution #14371
  • [typescript-axios] single request param in factory #14358
openapi-generator - v6.2.1 released

Published by wing328 almost 2 years ago

v6.2.1 is a patch release with 140+ commits including bug fixes and enhancements for 10+ programming languages. kotlin client generator now also supports Vert.x library. As always we appreciate the contributions from the 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

  • Update dependencies for CVE #13834

C#

  • [csharp-netcore] Allowing user to set client package #13785
  • [csharp] Fixed data type for maps of maps #13701

Crystal

  • [Crystal] Map AnyType to Object #13737
  • [Crystal] Allow double colons in model name #13736

Elixir

  • Elixir: Improve generated API options docs #13478

Elm

  • [elm] add function to allow more fine grained error handling #13773

Go

JavaScript

  • [JavaScript] add oneOf support #13561

Java

  • [Java][okhttp-gson] Minor improvements https://github.com/OpenAPITools/openapi-generator/pull/13864
  • Java jersey OAuth2 add support for public client #13828
  • [JAVA] [NATIVE] Fix exploded query parameters with array property #13656
  • Spring request mapping mode #13838
  • [Java][jaxrs-spec] Make contextPath template parameter available as a string constant for use in @ApplicationPath #13377

Kotlin

  • [Kotlin]Reducing code smells #13703
  • Added Kotlin Vert.x client #13594

PHP

Python

  • [python] fixes required prop in composed schema, prop not in properties, addProps unset #13819
  • [python] Fixes endpoint overload type hint + required property not in properties #13790
  • [python] Fixes bugs #13581
  • [python] fix for issue #13722: send body for application/x-www-form-urlencoded data #13723

R

  • Better error handling in the R client #13800

Rust

  • [rust] [rust-server] More abstract functions including integer fitting #13503
  • [rust] Fix generation for optional and nullable fields (double option pattern) #13177

Swift

  • [swift5] update new minimum OS supported versions #13667
  • [swift5] fix generation of multiple security definitions #13617
openapi-generator - v6.2.0 released

Published by wing328 about 2 years ago

v6.2.0 is a minor release with one important breaking change (with fallback). The python generator has been refactored (replaced with python-experimental) with breaking changes. Please give it a try and let us know if you've any feedback.

Given that python-experimental contains breaking changes, users can fallback to python-prior after this PR if they prefer not to upgrade at the moment for whatever reasons.

After the PR, the future development of python (which follows a JSON schema focused design) will be moved to a new project named "openapi-json-schema-generator" under https://github.com/openapi-json-schema-tools. If you've any questions, feedback or issues, please open a ticket. Anyone wants to contribute a client/server generator with a focus on JSON schema should contribute to "openapi-json-schema-generator".

At the same time, @wing328 is leading an effort to create a new Python client generator based on the design of other popular clients in this project such as Java, C#, PHP, Ruby and more to make the overall developer experience more consistent. The goal is to have the new Python client generator replacing/sunsetting all existing python client generators in the openapi-generator project at the moment for easier maintenance.

Python

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

openapi-generator - v6.1.0 released

Published by wing328 about 2 years ago

v6.1.0, which contains breaking changes with fallback, includes 280+ PRs covering 20+ programming languages from the 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

  • Update jackson-databind to newer version #13391
  • Adds $ref data to schema classes #13163
  • Allow override CodegenConfigurator in GenerateTask in OpenAPI Generator Gradle Plugin #13140
  • Fixes fromProperty so it retrieves the correct instance depending upon if the property is required or not 12858
  • Adds getIsBooleanSchemaTrue/getIsBooleanSchemaFalse to store is a schema was defined as boolean schema true or false 13341
  • Adds requiredVarsMap to store required vars even if those variables do not exist in properties or if additionalProperties is false 13117

Avro

  • Avro fix arrays with items as a ref to defined enum #13162

C

  • [C][Client] Treat "null" as a valid value for a field of a JSON map #13352

C#

  • [csharp-netcore] To support Secret API key input as string #13276
  • Added support for inheritance in Swashbuckle in ASP.NET Core #12856

C++

  • [cpp-ue4] Support UE5 version of FTickerObjectBase #13304
  • [cpp-pistache-server] Fix enum generation for mode useStructModel=true #13249

Dart

  • Make "applyToParams" a Future + add "this." when decoding JSON #13120

Go

  • [Go] Fix missing import for array/map of file #13143

HTML

  • Fix syntax error in generated html #13293

Java

  • fix: ensure Resteasy JAX-RS Response object closed #13333
  • [jaxrs-spec] fix default values for array #13076
  • [Java] apache-httpclient serialize support custom contentType #13058

JavaScript

  • Combine javascript and javascript-apollo generators #13270

k6

  • Better handling of NPE in k6 client generator #13236

Kotlin

  • Fix generation of default array values for kotlin client #13243

Perl

  • Fix Perl cannot string bind undef #13114

PHP

  • [PHP] double curly braces bugfix #12999
  • [PHP] Add support for server variables in operations #12982

PowerShell

  • [powershell] cache model name for faster lookup #12917

ProtoBuf

  • Fix protobuf variable name #13296

Python

  • [python-experimental] adds and uses regex patterns for json + filename detection 13357
  • [python-experimental] refactoring and type hint additions/improvements. instance["someProp"] type hints added
  • [python-experimental] verifies 11434 was fixed with test 13358
  • [python-experimental] improves json content-type detection 13356
  • [python-experimental] improves additionalProperties processing 13347
  • [python-experimental] adds endpoint generation by paths, eliminates duplicate endpoint generation 13007
  • [python-experimental] adds auto generated endpoint tests of serialization/deserialization 12875 13323 12988
  • [python-experimental] handles use case where tag exists on endpoint but does not exist in the spec tags section 13054
  • [python-experimental] improves docs, adds migration guide 13210
  • fix deepcopy for allOf schemas 13130

R

  • [R] support explode (true/false) in query array parameters #13364
  • [R] Add httr2 support #13005

Ruby

  • [Ruby] add useAutoload option to use autoload instead of require #13153

Rust

  • [rust] [rust-server] Add AbstractRustCodegen (breaking changes with fallback) #13231
  • Cleaned up cargo clippy warnings #13011

Scala

  • [scala][sttp] fix enum generation for inline-enum of array #13250

Swift

  • [swift5] distinguish (un-)authenticated requests #13321

TypeScript

  • [typescript-nestjs] Upgrade to NestJS v8 (Breaking change with fallback) #12937
openapi-generator - v6.0.1 released

Published by wing328 over 2 years ago

v6.0.1 is a patch release with enhancements, bug fixes covering 20 programming languages. As always, we appreciate the contributions from the awesome 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

  • Idea plugin for marking source directories, and omitting gradle wrapper #12711
  • Fix bugs in camelcase lambda, add tests for pascalcase #12639
  • Add new option to customize inline model naming convention #12562
  • Adds the ability to process and use model test cases, uses it in a new v3.0.3 unit test spec #12619

C

  • [C][Client] Set the default value for the null json #12620
  • [C][Client] Support free-form objects #12557

C#

  • [csharp-netcore] fix: url escaping #12739
  • [csharp-netcore] Add support for ComVisible, CLSCompliant attributes #12733
  • Fix NPE when generating examples for parameter (object) #12538

C++

  • [BUG] [CPP-UE4] Fix codegen for nested container types #12747
  • [cpp-qt-client] Add support for AnyType objects #12642

Crystal

  • [crystal][client] Skip generating operation examples when flag is set #12539

Dart

  • [Dart][Client] Support parsing DateTime #12433

Documentation

  • [html2] added recursion for nested objects #12428

Elixir

  • Improved Elixir Code Generation #12751

Elm

  • Fix for invalid elm code for paths containing UUIDs #12506

Go

  • [Go] use EqualFold instead instead of comparing strings in lower case #12741

GraphQL

  • Graphql nodejs express server lists fixup #12476

Haskell

  • [haskell-http-client] relax Aeson constraint to allow Aeson 1 #12486

Java

  • Update jackson databind to 2.12.6.1 #12698
  • [Java] Update jackson-databind-nullable to 0.2.3 #12693
  • [Java] Update RESTEasy lib to newer version #12688
  • Fix HTML-escaped token and authorization URLs in Java libraries #12677
  • [java][okhttp-gson] Keep AST small when using builder #12610
  • [Spring] Fix cookies in parameters are always generated as required #12599

Kotlin

  • [Kotlin][Client] replace java.nio.* to avoid crash on Android API 25 and bellow #12529
  • [Kotlin] fix invalid code when allOf is used #12594

OCaml

  • [OCaml] Code generation fixes #12395

PHP

  • [PHP] Enhance Symfony generator #12532
  • [php] fix @implements annotations in PHP client #11908

PowerShel

  • [PowerShell] support enum integers #12752

Python

  • Fixes double serialization bug in python-experimental #12561
  • Adds sample client for v3.0.3 unit test spec including autogenerated model tests, test run in CI #12619
  • Fixes GetItem not working for Client generated allOf model and broken since 5.2.0 #12239
  • Use print() function in both Python 2 and Python 3 #12467

Rust

  • Fixes double 'String' on string & UUID type #12409

R

  • [R] Add toString method to oneOf/anyOf objects #12727
  • [R] Fix nested oneOf/anyOf #12723
  • [R] fix deserialization for models with special item names #12658

Swift

  • [swift5] Make it possible to opt out of JSONEncodable conformance #12664

TypeScript

  • [typescript-fetch] Support error handler in middleware #12716
  • fix typescript node default enum #12633
openapi-generator - v6.0.0 released

Published by wing328 over 2 years ago

We're happy to announce the release of v6.0.0 - a major release with lots of enhancements and bug fixes. 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:

For a list of generators/frameworks that have been deprecated/decommission, please refer to this list

General

  • [Inline model resolver] Better support for inline schemas in parameters #12369
  • [Inline model resolver] better handling of inline responses and bug fixes #12353
  • [Inline model resolver] Fix inline allOf in request body #12348
  • [Inline model resolver] various improvements #12293
  • [Inline model resolver] Better inline model resolver to handle inline schema in array item #12104
  • Use LinkedHashMap for deterministic iteration order #12230
  • Configure apiNameSuffix via maven/gradle plugins #12062
  • fix: respect configured generator URL in swagger config #12064
  • Process additionalProperties: true as arbitrary type instead of object #11802

Ada

  • [Ada] Fix typo in final Info message #11914

Android

  • [Android] only support JDK8+ #11917

C

  • [C][Client] Eliminate compiler warnings #12260
  • [C][Client] Free list or map memory when json parsing fails #11866

C#

  • [aspnetcore] Include appsettings.Development.json #12217
  • [csharp-netcore] Add support for byte[] response deserialization #12188
  • [csharp-netcore] Composed primitives support in generichost #11924
  • [csharp-netcore] Fix incorrect FileParameter deserialization #11850

C++

  • [cpp-qt][client] add support for primitives types body #12301
  • [cpp-rest] better handling of property name with special characters #12288
  • [C++][Pistache] Add support for validating arrays, use full namespace type with custom types #12221
  • [cpp-restsdk] Change build folder structure to match include folder structure in installed client #11487

Documentation

  • Add - Status colors in Wiki, Example per parameter #12394
  • Confluence Wiki - Escape special characters #11786

Dart

  • [dart] Bump min dio version to prevent unused import #12354
  • [Dart] jaguar remove in 6.x #10534

Elixir

  • Allow the baseUrl of elixir APIs to be overridden #12268

Go

  • [GO] Fix exception in constructExampleCode with oneOf primitive type #12362
  • [Go] fix oneOf naming #11863

Haskell

  • [haskell-http-client] Update haskell-http-client generator to Aeson 2.x #12309
  • Upgrade haskell-servant to latest LTS #12092

Java

  • [java-micronaut] Allow default implementation to return HTTP 501 #12365
  • Playframework oauth small upgrade #12332
  • [java][resttemplate] avoid StringIndexOutOfBoundsException on empty HttpHeaders #12327
  • [Micronaut] Improvements for Server and Client #12297
  • [java] Add jersey3 support to the Java client #12046
  • Upgrade to Spring Boot 2.6.6/2.5.12 and Spring Cloud 2021.0.1 #12027
  • [java][jersey2] update junit from 4.x to 5.x (major upgrade) #11898
  • [java native] Support arrays in QueryParameters deepObject style #11699
  • Remove JDK7 support from Java Spring generators #11561

JavaScript

  • [JS] Remove ES5 support #12033

Kotlin

  • [BUG][Kotlin-client] Handling default values of parameters #12255
  • [kotlin-server][jaxrs-spec] Remove obsolete imports from API template #11899
  • [kotlin][spring] Rename extension to conform to kebab-case #1189
  • Remove JDK 6, 7 supports in kotlin templates #11560

Perl

  • Fix Perl client header params #11713

PHP

  • [php] Bump required PHP version to 7.4 #12359
  • [php-slim4] Add minimal GitHub Action config #11874
  • [PHP] Fix deprecations in PHP 8.1 #11743
  • [php-slim4] Add lazy CORS implementation #11941

Python

  • [python-experimental] fixes delete endpoint with no body use case #12287
  • [python-flask] Fix mypy error type annotation needed #12272
  • Fix issue with fastapi generator converting all fields to snake_case #12261

PowerShell

  • [PowerShell] better enum model support #12082

Protobuf

  • [Protobuf-Schema] Add enum prefix #11548

R

  • [R] Use snake_case in method parameter names #12390 Breaking change (without fallback)
  • [R] update .Rbuildignore with more files/directories #12383
  • [R] fix warnings in DESCRIPTION #12380

Ruby

  • [Ruby] Add support for faraday 2.x #12112

Rust

  • Better handling of version in Rust client #12284
  • [Rust][Server] Upgrade to tokio v1 #11873

Scala

  • [Scala][sttp] various bug fixes #12254
  • [scala-akka-http-server] model default value when field is not required #12068

Swift

  • [swift5] Abstract away URLSession #12110

TypeScript

  • [typescript-fetch] Support Sets in query parameters (when uniqueItems=true) #12318
  • [typescript*] drop support typescript below 4.0 #12123

wsdl

  • [Wsdl] Adding cli-option for generating different versions of WSDL-files regarding Media type versioning (content negotiation) #12206
openapi-generator - v6.0.0-beta released

Published by wing328 over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/OpenAPITools/openapi-generator/compare/v5.4.0...v6.0.0-beta

openapi-generator - v5.4.0 released

Published by wing328 over 2 years ago

v5.4.0 is the last stable release before next major release v6.0.0 scheduled in 2022 Q1/Q2. It comes many enhancements/bug fixes and 5 new generators/libraries:

Thanks for all 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

  • Migrate to official Apache Maven Wrapper #11381
  • Adds generator default template engine #11366
  • Recursively search for types during import type collection in deeply nested schemas #11221

Avro

  • Avro schema generation fix for properties with type ref to an enum #11201

C

  • keyword conflict with zebos list_creat(), list_free() #11190

C++

  • [CPP-QT-QHTTPENGINE Server] various bug fixes #11177

C#

  • Improve example value handling in C# generators #11355
  • [csharp-netcore] Fix: Add only first Authorization header #11325
  • [BUG][csharp-netcore] Fix Multi Files for the same FormField #11259
  • [csharp-netcore] Adding generic host library #10627

Go

  • Handling golang client generation for oneOf with no discriminator and useOneOfDiscriminatorLookup is true #11178

Java

  • [JAVA] new Feature interface: Documentation Provider and Annotation Library #11258
  • Avoid using import mapping in model generation #11217
  • [Java Spring OAS3] Fix numerous OAS3 related Bugs #11181
  • Apache Camel Server Generator #11162 (New Generator)
  • Change Helidon MP release in generated project from 1.x to 2.x #11076
  • Add Micronaut server generator Enhancement: New generator #10270

JavaScript

  • [JS][flow] update node-fetch to newer version #11378

Kotlin

  • [KOTLIN][CLIENT] fix unused library additional properties on kotlin generator #11328
  • [kotlin] Added fix for wrongly encoded backticks for reserved words when generating kotlin client #11310
  • [kotlin-server][jax-rs] Added support for JAX-RS library into Kotlin Server generator #10830

PHP

  • [PHP] Allow guzzlehttp/psr7 ^1.7 or ^2.0 #11240
  • [php][bug] Fix DateTime microseconds bug in ObjectSerializer #11213

Python

  • [Python] fix model to dict #11234
  • feat(python-asyncio): add support for proxy config using system env vars #11171
  • Adds python-experimental which uses dynamic base classes #8325

Rust

  • Rust Client: Add support for collectionFormat="multi" #11169

Scala

  • [scala-gatling] use the official Gradle plugin #11208

Swift

  • Make moduleObject.mustache confirms to JSONEncodable #11202
  • [swift5] Add property x-null-encodable extension for full control over encoding value/nil or nothing #11141

TypeScript

  • [TypeScript Fetch] Default TypeScript fetch configuration to 3.6+ true #11331
  • [typescript-angular] Support blob response types #11085
openapi-generator - v5.3.1 released

Published by wing328 almost 3 years ago

v5.3.1 is the last stable release in 2021. It comes many enhancements/bug fixes and 2 new generators/libraries:

Thanks for all the contributions from the OpenAPI Generator community. We would like to take this opportunity to wish everyone Happy Holdiays!

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

  • Fixes paramName and dataType for request body anyType parameters #11075
  • Compare HTTP auth security schema names case-insensitive #10989
  • Better handling of NPE in parser when referencing invalid schema #10882

Bash

  • [Bash] Support post form data #10795

C

  • [C][Client] Support a custom data type (IntOrString) #11074
  • [C][Client] Use cpack to build deb package #10935

C#

  • [C#] new Azure functions generator #11020
  • [C#] Update C# dependencies to newer version #10761
  • [csharp-netcore] Support Net 6.0 #10634

C++

  • [cpp-pistache-server]: Fix build with pistache #10829
  • [cpprestsdk] CMake build system improvements #10660
  • [Qt][C++] Oauth2 Authorization Code Flow and Implicit Flow Support #10183

Crystal

  • [crystal][client] Update crystal client gitignore.mustache with shards related files #10698

Dart

  • [dart][dio][built_value] Fix missing serializer factory builders for additionalProperties #11011
  • [dart-dio-next] Removes dioLibrary option #10931

Go

  • [GO] dont canonize headers #10779

Groovy

  • Fix build-info-extractor-gradle in groovy build.gradle #10760

Kotlin

  • [kotlin][client] update request exceptions #11065
  • [Kotlin] Fully qualified "Any" for enums in encode and decode function #10985
  • [Kotlin][Multiplatform] Support custom Ktor HTTP client configuration #10968
  • [kotlin][spring] Add validation to headers #10703

Java

  • [java][okhttp-gson-nextgen] Better null handling in oneOf, anyOf model #11056
  • Add operation level servers support for java okhttp-gson client #10925
  • [Java][okhttp-gson] Support text/plain body #10885
  • Fix library generation compatibility with Gradle 7.2 #10716
  • [java][microprofile] update dependency to newer version #10714
  • Allow Spring generated code to use new OAS 3 annotations #9775

K6

  • [K6 Generator] various enhancements (request body example data extraction, support for generating scenario tests and load tests out of the box, and much more) #11106

Php

  • [php-slim4] Bump required PHP version to 7.4 #11039
  • [php-slim4] Switch to Packaged Body Parsing Middleware #9562

PowerShell

  • [powershell] add file upload support #10735

Protobuf

  • [Protobuf-Schema] Add numbered field number list switch #10893
  • [Protobuf-Schema] Add enum as model support #10868

Python

  • [Python] fix model.mustache import #10988
  • [Python] Add option to select/detect content-type #10978

Rust

  • [rust][client] fix breaking regression introduced by #10432
  • [rust] Update to modern hyper and futures crates #9919

Scala

  • [scala-akka-http-server] Fix array optional parameter invalid default value #10676

Swift

  • [swift5][client] allow request cancellation and authentication flow to work together #11019
  • [swift5] Refactor encodeToJSON #10961

TypeScript

  • Fixed http errors deserialization #10940
  • Support Angular 13 #10877
  • Typescript saga immutablejs enhancements and small fixes #10444
Package Rankings
Top 1.33% on Repo1.maven.org
Top 4.1% on Pypi.org
Top 3.04% on Proxy.golang.org
Badges
Extracted from project README
Stable releases in Maven Central Apache 2.0 License Open Collective backers Join the Slack chat room Follow OpenAPI Generator Twitter account to get the latest update Contribute with Gitpod Conan Center Revved up by Develocity Build Status Integration Test2 Windows Test Bitrise NamSor LightBow Linode Linode Logo
Related Projects