Skip to content

@wing328 wing328 released this Oct 31, 2019 · 121 commits to master since this release

v4.2.0 (containing breaking changes with fallbacks) comes with 3 new generators: dart-dio, php-slim4, java-vertx-web. As always, we're very grateful for the contributions from the awesome community.

List of breaking changes with fallbacks

List of all changes

Below is the summary:

General

  • [docs] Custom template clarifications and other minor enhancements #4167
  • [core] Update Swagger-Parser to '2.0.15' #4145
  • Sanitizes model names so they're valid class/interface names #4127
  • Fix readonly with isReadOnly #4102
  • Serializer object mapper setting fix #4093
  • Remove unused property (SecuritySchemeDefinition) #4081
  • Add style and explode #4042
  • [CLI] Initial implementation for batch generation #3789

Avro

  • Fix file type in avro template #4105
  • [AVRO] Fix the package handling for the avro generator #4078

Bash

  • [Bash] Minor improvements #4274

C

  • [C] Update build-and-test.bash to fix CI errors #4312

C#

  • [C#][NetCore] Rename local variables #4297
  • Deprecated netstandard, uwp support in csharp generator #4214
  • [CSharp] add optional flag "optionalEmitDefaultValues" and update template #4010

C++

  • [C++] Enable Qt5 Petstore tests #4164
  • [C++] [Qt5] Add generation of cmake files to qt5 client #4133
  • [C++] [Qt5] Add missing supporting files when prefix is provided #4132
  • [C++][Pistache] Use optional when required #4082

Confluence wiki

  • Fix Confluence wiki format issue #4064

Dart

  • [dart-dio] Correctly handles import of Uint8List #4313
  • [Dart] [Bug] Handle model names starting with number #4276
  • Fix conflict if paramName is data #4266
  • fix(dart-dio): enum class generation is not implemented #4235
  • Adds Dart Dio generator #4018

Elm

  • [elm] fix code generation for nullable types #4136
  • Fix NPE in Elm path parameter #4116
  • [elm] Add toString for all types #3983

Go

  • [go-server] Return Router interface from controller constructor #4196
  • Fix boolean operators precedence #4158
  • [Go] Upgrade dependencies #4126
  • [Go] Fix go.mod and go.sum for 1.13 #4084
  • [Go] Fix enum value which is not string #4077
  • [go-server] Enhance Go API server with interfaces router binding and services #4038
  • [go-experimental] export required fields without pointer #3989
  • [Golang] Allow retrieving the underlying configuration for APIClient #3976
  • Do not check status code for default response #3322

Haskell

  • [FEATURE][Haskell] Haskell-Servant serves static files #4058
  • [FEATURE][Haskell] Add Middleware support for the haskell servant generator #4056
  • [haskell-http-client] Bump deps to LTS 14.7 #4068
  • [haskell-http-client] add dateTimeParseFormat CLI option - overrides the format string used to parse a datetime #4037
  • [haskell-http-client] disable unused import warning in Core.hs #4020
  • Fix trailing comma wrong in template for haskell-http-client #4013

Java

  • Implement Server Stub Code for Vert.x Web #4286
  • Add bearer token authentication documentation to template #4278
  • okhttp-gson: fix SSL settings with okhttp3 #4226
  • [jaxrs-spec][quarkus] update to 0.25.0 #4185
  • Update to jackson-datatype-threetenbp 2.9.10 #4176
  • [Java] Support cookie-based security schemas in Java clients #4155
  • [Java] fix jackson-databind-nullable version variable due to Gradle Incompatibility (Template Update) #4148
  • [JaxRS-Java] use @FormParam for form parameters when it is not Multipart #4125
  • [Java] fix jackson-databind-nullable version variable due to Gradle Incompatibility #4092
  • [jaxrs-spec][quarkus] update to 0.23.2 and fixes for Dockerfile #4053
  • Make Java Resttemplate client thread safe by using the withHttpInfo pattern (Breaking change (with fallback)) #4049
  • [java][client] Fix regression in Java XML serialization #4023
  • [java] Don't import oltu when not necessary #3950
  • [java][client] Don't include nullable attributes twice in serialized JSON #3923
  • [java] allow to use setArtifactVersion() programmatically #3907
  • [JAVA][JAXRS] Fix parameters validation #3862
  • [Java][Fix #3310] Respect discriminator case for @JsonTypeInfo #3320

JavaScript

  • [JavaScript][ES6] Added a check if response is undefined #4298

Kotlin

  • [Kotlin][multiplatform] better authentication support #4284
  • Fix Kotlin query collection format #4248
  • [Kotlin] Add kotlin.collections.Set support for unique item arrays #4247
  • [kotlin][client] only use authentication tokens when they are not null #4238
  • Fixes Kotlin client property names that include a dollar sign #4229
  • [Kotlin][client] Add nullable query parameter support #4197
  • Update to jackson-datatype-threetenbp 2.9.10 #4176
  • [Kotlin][Client] fix missing curly bracket when the model contains enum property #4118
  • [kotlin] add option for non public API #4089
  • Add DELETE with body to kotlin client #4047
  • [kotlin-client][kotlin-server] kotlin data class serial version uid #4021
  • [kotlin-client] Add support okhttp3 and Android 4.x #4008
  • Fix generation of query parameters for optional/nullable function arguments #3903

PHP

  • Mark Slim3 server generator as deprecated #4256
  • New PHP Slim4 Server Generator #3658

PowerShell

  • Update API and model path when packageName is updated #4108
  • Fix nullable for arrays and complex types #4106

Python

  • [Python] Remove redundant else statement #4311
  • Python: Flask: Fix: Update setup.py to match requirements.txt #4205
  • [Python] Minor fix to code format #4172
  • [python] Remove post_params and body from OPTIONS request #4163
  • [python] Skip adding None value in query parameters #4161
  • [Python-experimental] types now classes, adds additionalProperties handling #4154
  • [python] Add ability to get allowed values #4138
  • [python] Add option to skip client validations #4137
  • [python] Add missing keywords python #4134
  • Test Python aiohttp first in Travis #4117
  • Fixed Readonly Docs for python #4085

R

  • [r][license]: Better license and contact information #4317

Rust

  • [Rust] Better support for optional and nullable parameters #4016
  • [Rust] Add support for discriminator #3895
  • [Rust Server] Support parameters correctly in response headers #3669
  • [Rust Server] Support types with additional properties #3666
  • [rust] Make it easier to test rust client generator #3543

Swift

  • [swift] Add missing keywords in Swift #4153
  • [swift4] Add swift package manager and update dependencies #4141

TypeScript

  • [TS] Fixes typescript-axios "File custom.d.ts not found" when building consumer TS project #4230
  • typescript-angular: Allow for custom naming of ApiModule #4209
  • [typescript-rxjs] improve HttpQuery typing #4198
  • typescript-rxjs: fix query parameters type #4160
  • [typescript-inversify] Fix multipart form uploads #4131
  • Disabling linting for typescript-fetch #4110
  • typescript-fetch: fix empty URLSearchParams request body #4103
  • [typescript-axios] Fix api generating incorrect serialization type check #4051
  • typescript-jquery: Update to work with Typescript strict mode #3969
  • typescript-angular: set angular version 8 as default for ngVersion (Breaking change (with fallback)) #3680
Assets 2
You can’t perform that action at this time.