From 4588362969fa47fa2aa9e126fbb7a36e3af860ce Mon Sep 17 00:00:00 2001 From: ghostbuster91 Date: Tue, 16 Jun 2020 15:38:21 +0200 Subject: [PATCH] [Sttp] Update default version to 2.2.0 --- docs/generators/scala-sttp.md | 2 +- .../openapitools/codegen/languages/ScalaSttpClientCodegen.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/generators/scala-sttp.md b/docs/generators/scala-sttp.md index ad8848451804..ab09d61bac43 100644 --- a/docs/generators/scala-sttp.md +++ b/docs/generators/scala-sttp.md @@ -7,7 +7,7 @@ sidebar_label: scala-sttp | ------ | ----------- | ------ | ------- | |allowUnicodeIdentifiers|boolean, toggles whether unicode identifiers are allowed in names or not, default is false| |false| |apiPackage|package for generated api classes| |null| -|sttpClientVersion|Option. Allows to override default version of sttp client library.|2.1.5 +|sttpClientVersion|Option. Allows to override default version of sttp client library. Minimal version required for this project to compile is 2.2.0 |2.2.0 |dateLibrary|Option. Date library to use|
**joda**
Joda (for legacy app)
**java8**
Java 8 native JSR310 (prefered for JDK 1.8+)
|java8| |jodaTimeVersion|Only if dateLibrary was set to joda. Allows to override default jodatime version.|2.10.6 |json4sVersion|Only if jsonLibrary was set to json4s. Allows to override default json4s version.|3.6.8 diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ScalaSttpClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ScalaSttpClientCodegen.java index bb1fdf42df8b..10d8e1faf73f 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ScalaSttpClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ScalaSttpClientCodegen.java @@ -42,7 +42,7 @@ public class ScalaSttpClientCodegen extends AbstractScalaCodegen implements CodegenConfig { private static final StringProperty STTP_CLIENT_VERSION = new StringProperty("sttpClientVersion", "The version of " + - "sttp client", "2.1.5"); + "sttp client", "2.2.0"); private static final BooleanProperty USE_SEPARATE_ERROR_CHANNEL = new BooleanProperty("separateErrorChannel", "Whether to return response as " + "F[Either[ResponseError[ErrorType], ReturnType]]] or to flatten " +