From 98468aba5cfae2be2e83f25eaa9f805e882e097f Mon Sep 17 00:00:00 2001 From: William Cheng Date: Sat, 5 Oct 2024 17:15:37 +0800 Subject: [PATCH] minor improvemetns to new scala client generator (#19786) --- README.md | 1 + .../codegen/languages/ScalaHttp4sClientCodegen.java | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cdb95e5af035..3eeb3148f49e 100644 --- a/README.md +++ b/README.md @@ -1045,6 +1045,7 @@ Here is a list of template creators: * Scala (sttp): @chameleon82 * Scala (sttp4): @flsh86 * Scala (Pekko): @mickaelmagniez + * Scala (http4s): @JennyLeahy * Swift: @tkqubo * Swift 3: @hexelon * Swift 4: @ehyche diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ScalaHttp4sClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ScalaHttp4sClientCodegen.java index 6c11d384059c..e58e5012e1e2 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ScalaHttp4sClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ScalaHttp4sClientCodegen.java @@ -1,6 +1,5 @@ /* * Copyright 2018 OpenAPI-Generator Contributors (https://openapi-generator.tech) - * Copyright 2018 SmartBear Software * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -240,7 +239,7 @@ public void processOpts() { this.importMapping.put("Instant", "java.time.Instant"); this.importMapping.put("OffsetDateTime", "java.time.OffsetDateTime"); additionalProperties.put("java8", "true"); - } else { + } else { String error = "DateLibrary " + dateLibrary + " is not supported. Please use java8"; LOGGER.error(error); throw new RuntimeException(error);