Skip to content

Releases: OpenAPITools/openapi-generator

Release 3.0.3

27 Jun 14:45
34ad6d5
Compare
Choose a tag to compare

New Generators:

  • New Javascript flowtyped generator (#176)

General:

  • Fix path in error message (#403)
  • Add wording to clarify the relationship with OAI (#374)
  • Add an update to the Q&A (#371)
  • Consider ComposedSchema in DefaultCodegen#fromRequestBody(..) (#358)
  • Adding in Telstra (#357)

C#

  • [aspnetcore] Fix new keyword collection (#385)

C++:

  • Sanitize model names (#388)
  • [Pistache] Fix optional error and wrong function signatures (#264)

Erlang:

  • Disable Erlang server test due to dependency issue (Shippable CI) (#375)

Go:

  • Update Go client, server petstore samples (#365)
  • Fix issue #51, change object mapping from *interface{} to map[st… (#60)

JMeter:

  • Rename codegen class, template folder (#387)

PHP:

  • [Slim] Upgrade API server integration tests to use Fake Petstore spec (#354)

Rust:

  • Update to error-chain 0.12 (#395)

  • Disable Rust server test due to lint error (#379)

Scala:

  • Rename script, sample folder, template dir (#334)

Swift:

  • Add compatibility for unwrapRequired config option (#229)

Typescript:

  • Use case sensitivity when checking reserved words (#351)
  • Typescript Angular 2: Make service suffix configurable (#341)
  • basePath through injected config (#289)

CI:

  • openapi-generator-gradle-plugin-mvn-wrapper should not be uploaded (#366)
  • Restore unit test (#346)

Release 3.0.2

18 Jun 05:39
74914b6
Compare
Choose a tag to compare

General:

  • Enable recommendations on validate command (#292)

C++:

  • Rename template dir (#332)
  • update cpp server scripts/batch files (#296)

Javascript:

  • Add fixes for es6 generator (#180)
  • Add option modelPropertyNaming to javascript generator (#299)

Java/Spring:

  • Configuration option to disable HTML escaping when using Gson (#298)
  • Fix spring controller validation (#225)

Go:

  • Go server clean up (#328)
  • Add dockerfile for building and run petstore service (#274)
  • Add Go client test - TestPlaceOrder (#321)

Rust Server:

  • Add rust-server to travis CI (#308)
  • (Re-)Adding support for rust-server (#290)

Typescript:

  • Fix cast problem (#303)

CI:

  • Various improvement to CI (#326)
  • CircleCI migration from 1.0 to 2.0 (#333)
  • Shippable changes (#305), (#319)
  • Ignore signing for other branches than master (#288)

Documentation:

Release 3.0.1

11 Jun 17:18
Compare
Choose a tag to compare

This release resolves a publishing issue with the Gradle plugin in the previous release, making this the first officially functional release of the Gradle plugin. See the plugin readme for usage details.

This release also includes a handful of feature additions and bugfixes, as well as CLI and build-related improvements. See below for highlights and milestone 3.0.1 for full details.

General

  • Fix ModelUtils.getUnusedSchema() #253
  • OAS3 feature: add cookie authentication support #240
  • Make YAML serialization deterministic #233
  • [cli] Completions command for suggestions #213
  • [cli] Write to stdout/stderr, allow redirection #207
  • Build improvements #202
  • [gradle] Plugin release management #201

Ada

  • [Ada] Update the code generator for required and optional parameters #211

C++

  • [cpp-qt5] Remove std::shared_ptr from Qt5 #267

Java

  • [Java][RestTemplate] Fix query parameter URL encoding #260
  • [jaxrs-spec] fix empty openapi.yaml file #243
  • [Spring] Add apiFirst option #184
  • [JAVA][Client] New object instead of null for empty POST request #98

TypeScript

  • [typescript-angular] strict type checking #218

The first stable version 3.0.0 has been released

01 Jun 07:53
Compare
Choose a tag to compare

Thanks for the effort from the community, we have released a stable version 3.0.0, which supports both OpenAPI specification v2 and v3 🎉 🎊 . A good starting point is the migration guide.

For more information on why we forked Swagger Codegen to maintain a community-driven version "OpenAPI Generator", please refer to the Q&A

Public chatroom: https://gitter.im/OpenAPITools/openapi-generator

Brew formula for OpenAPI Generator: Homebrew/homebrew-core#28584 (Pending)

For the latest update on OpenAPI Generator, please follow our Twitter account (oas_generator)

Below please find the changelog for this release (relative to v2.3.1 of Swagger Codegen)

New Generators

6debf74 Java rest-assured client - java with --library=rest-assured
6d2d429 Scala Gatling client - scala-gatling
e2c58fa TypeScript Inversify client - typescript-inversify
7cad47d Kotlin server - kotlin-server

Docker

7dfd940 Docker: use correct MAVEN_CONFIG (#182)
b5a0d17 Revise the usage of OpenAPI Generator online (docker image) (#73)
e58dc2c Fix COPY in Dockerfile (#64)
9d7feaa Fix online generator (docker push) (#58)
9247cd0 Changes for Docker
64037ee update docker-related files to use JDK8

Plug-ins

b6b8c0d [gradle-plugin] Initial implementation (#162)
0a28aad [MAVEN PLUGIN] Checking for null configOptions before looking for property
9c79297 [MAVEN PLUGIN] Use latest version in dependencies snippet
9e1bbe0 Add maven wrapper

API Clients

Ada

edf6be8 [Ada] bug fix by defining x-is-model-type when property is local to the YML file
9ba74f4 [Ada] Fix GNAT project and server skeleton to avoid sending a response when an error is returned
ea27924 [Ada] changed default project/package name, to solve circular dependencies
6b9d38d remove trailing spaces in ada template
0de7f97 Fix the Ada server skeleton to check the authsMethods in the Shared_Instance generic package
4bd8fc6 Fix 7511: [Ada] Client call is not correct with multiple parameters and application/x-www-urlencoded
3035bc6 [Ada] Hotfix/ada model sort
43f0e86 Ada code generator corrected: "=>" instead of "->".
7d2b490 [Ada] wrong order for generated structures in models.ads files
2b2b85e [Ada] wrong JSON in POST operations

C#

0e34bcf [csharp] ctor params should always be camelCase [Breaking change with fallback]
8724719 [csharp] Support arrays of arrays for properties and models
1c4e6b7 [csharp] Fix ToJson to work with composition and polymorphism
ed7af73 [csharp] Reference this.Configuration in client API template

C++

e796e4c [C++] Add linux as a reserve keyword
36f69a0 remove trailing spaces in qt5 c++ templates
f192613 fix string type in c++ generator
4090154 fix file type in qt5cpp
a4bcb3b fix datetime and map type for qt5cpp
23b31ab [qt5cpp] Fix crash when API return a map container
3b031ed [qt5cpp] delete callback data allocated before signal emission
1bb1e44 [qt5cpp] Remove qt5 pro.user file
1947220 Qt5cpp plug memleaks part2
12f3661 Qt5cpp plug memleaks
ea4b948 [qt5cpp] Add nullptr guard to prevent crash when empty model is being serialized
0bf430a Qt5cpp Add support for nested containers
0b3ec6b fix NPE with cpp qt5, add logic to avoid NPE with composed schema
7c73444 fix file parameter in header file (cpprest)
070b5c0 fix object type declaration in cpprest
bad1885 [cpprest] add parameterToString for number type with unspecified format (double)
73bd24d [cpprest] Add support for nested vectors
ee2eb74 [qt] update Qt client
d824999 Adding qt project generation fix
9bd94b4 [qt] Fix warning message

Clojure

d7e3745 [Clojure] Add util method to set the api-context globally (#93)

Dart

f1638a6 [Dart] Allow setting an accessToken for OAuth
a5e26a4 [Dart] Rework Dart client generator to be flutter-compatible [Breaking change without fallback]

Elixir

f9b2839 [Elixir] Check date value before calling to_iso8601

Elm

5a87fe6 [elm] Fix operations with empty responses (#171)
a5cf27b Fix Petstore example for Elm (#96)
c522927 Fix Elm generator for polymorphism (#78)
7d9fb9f Add CI test for Elm in travis (#40)
769a65c [Elm] Add support for array schemas
56a0268 [elm] missing '->' in Main elm template

Erlang

c731185 [erlang-client] Erlang request utils
049eef9 Test erlang client, server petstore
bcc7b78 fix erlang client compilation error

Go

acb63fd Fix go readme, remove resty install
5d8362d Update go client, fix double body read
47614bb Properly capitalize exported go types
ee561fc Add withXml option for Go language
0f66960 [Go] Use consistent indentation in readme
72abb20 [Go] Fix operation files clobbering model files
d1e75b084 Golang Client Refactor (body and model in errors, typed optional parameters) [Breaking change without fallback]

Haskell

34db79b [haskell-http-client] update dependency versions + readme (#81)
e45b378 Fix NPE with Haskell client generator with OAS3 spec
d340139 [haskell-http-client] remove duplicates in produces/consumes; fix pathParam paramName issue
4bc99b9 minor fixes to haskell http client generator
2d0bafb [haskell-http-client] default InlineMimeTypes to true [Breaking change with fallback]
9fba9c3 [haskell-http-client] add config options: cabalPackage, cabalVersion, baseModule, requestType, configType

Kotlin

a3322fb [kotlin] Add OkHttpClient.Builder to ApiClient.
3c5fb1d [kotlin] Add json annotation to each enum value.
39fa375 [kotlin] Fix NPE for POST/PUT/PATCH with empty request models.
c599906 [Kotlin] Correct data_class.mustache to use proper property for inner enum data type
c69925b [Kotlin] Fix issues with threetenbp
a811a48 minor fix to kotlin client generator due to merge conflict
914275f [kotlin] support selection of datelibrary
a61d232 Fixed incorrect renaming of header and query param to camel cases for Kotlin Client template

Lua

dbe78e2 [Lua] Improve auto-generated test files
6c79052 Add auto-generated Lua spec files for APIs, models
38a2c1d [Lua] Fix Rockpec
a2410b2 Add auto-generated rockspec file to Lua API client
df10c72 Add lua test script, minor fix to Lua API files

Java

2e69e6c build.gradle should not have commas
1a4e5a4 Java client: Add constants for libraries (#163)
7db0201 Fix NPEs in Java generator (#154)
4d7ff8c JavaDoc fixes for Java/RESTEasy client (#151)
072ce07 resteasy: fix outer enum case (#139)
ccd0029 [Java] rest-assured: fix javadoc in templates
e7410d4 Allow $ in Java var name
03490e9 Fix Java binary mapping
70b4b55 Fix performance linting problem with maps in Java ApiClient template
cddcda0 [Java][Jersey2] Make generated client code thread safe [Breaking change without fallback]
298ca8d use correct jackson date library when using Java 8
53eeb0c [Java] fix connection leak on retrofit OAuth token renewal
61c25e7 [Java] Fixes for retrofit
f023327 [JAVA] Fix issue when codegen with parcelableMode fails to build if using arrays in OpenAPI spec
4eeb974 [Java][google-api-client] Fix bug with empty POST request not sending content-type
d4543a9 [Java][retrofit2] file upload sets filename as baseName instead of a dynamic filename
62a9302 [JAVA][Rest-assured] reqSpec() method has been added into api.mustache for requests customization
fec0363 [Java] Add back byte array enhancement
59ff4c1 [Java][library: vertx] Add default value and required parameter support to vertx server
3bd2da9 [Java] Fix build warnings
429b96a [JAVA] equals and hashCode for models with byte[] and binary strings
495971c [Java] use html entities in javadoc of generated code (#106)
82ee865 [java] Enum in array of array (#66)
bf7e4e7 Java gson: add @SerializedName value as constant (#22)
30c1448 Fix build.gradle for Java RESTEasy client
642c056 [Java] Use Rx2 Completalbe for Void Retrofit2 responses
72221b1 Adding @deprecated to retrofit2 client interfaces.
47111b3 [Java] fix gson deserialize format byte
9e06f70 [Java] Fix assignment of new object instance to variable
006f084 [Java] Allow to set values with setApiPackage(..) and setModelPackage(..)

JavaScript/NodeJS

d80e295 Fix JS test using baseName in default value (#5)
fe15f46 fix toDefaultValueWithParam in JS
9085957 Fixing variable name typo (instane -> instance)

Objective-C

9fb2c29 7644 objc deprecated afnetworking datataskwithrequest
5d18740 add class as a keyword in objc generator
1b8df5c Update ObjcClientCodegen.java
246ed57 restore objc reserved word: property

PHP

3beeb4e [PHP] Not-required properties now shows as nullable (#129)
37df59d [PHP] Adjust the names (script, sample folder, generator) to lang option (#159)
4a5d16b [PHP] Fix string length validation
d58835e [PHP] Improve: Make validation strict
cf8d8d5 [PHP] Fix code example from README. Variable name was missing when using Basic auth.
0adbf7e [PHP] Improve: update sample tests automatically
32cf2f1 [PHP] Non required enum property
3bcf0ff [PHP] Add path & file separator (/) to return the correct path when deserializing a file
14e1e19 [PHP] Improve validation on empty arrays
809e1f4 [PHP] Cleanup tests
76907ca [PHP] declare property headerSelector

Python

7184f1e [python] asyncio supports _preload_content; remove unused imports (#107)
d74d2ba fix: python clients
8e0a0eb Fix python / tornado body handling
b39c35c Fix inconsistency between model name and file name in python client
dfbef43 Fixed unicode error and supported allow_nonstandard_methods in tornado b...

Read more