mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-12 12:40:53 +00:00
minor improvemetns to new scala client generator (#19786)
This commit is contained in:
parent
fbebfeb774
commit
98468aba5c
@ -1045,6 +1045,7 @@ Here is a list of template creators:
|
|||||||
* Scala (sttp): @chameleon82
|
* Scala (sttp): @chameleon82
|
||||||
* Scala (sttp4): @flsh86
|
* Scala (sttp4): @flsh86
|
||||||
* Scala (Pekko): @mickaelmagniez
|
* Scala (Pekko): @mickaelmagniez
|
||||||
|
* Scala (http4s): @JennyLeahy
|
||||||
* Swift: @tkqubo
|
* Swift: @tkqubo
|
||||||
* Swift 3: @hexelon
|
* Swift 3: @hexelon
|
||||||
* Swift 4: @ehyche
|
* Swift 4: @ehyche
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2018 OpenAPI-Generator Contributors (https://openapi-generator.tech)
|
* Copyright 2018 OpenAPI-Generator Contributors (https://openapi-generator.tech)
|
||||||
* Copyright 2018 SmartBear Software
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -240,7 +239,7 @@ public class ScalaHttp4sClientCodegen extends AbstractScalaCodegen implements Co
|
|||||||
this.importMapping.put("Instant", "java.time.Instant");
|
this.importMapping.put("Instant", "java.time.Instant");
|
||||||
this.importMapping.put("OffsetDateTime", "java.time.OffsetDateTime");
|
this.importMapping.put("OffsetDateTime", "java.time.OffsetDateTime");
|
||||||
additionalProperties.put("java8", "true");
|
additionalProperties.put("java8", "true");
|
||||||
} else {
|
} else {
|
||||||
String error = "DateLibrary " + dateLibrary + " is not supported. Please use java8";
|
String error = "DateLibrary " + dateLibrary + " is not supported. Please use java8";
|
||||||
LOGGER.error(error);
|
LOGGER.error(error);
|
||||||
throw new RuntimeException(error);
|
throw new RuntimeException(error);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user