Skip to content

Commit 2e4b0e3

Browse files
authored
Set default value true for useResponseAsReturnType cli option
1 parent 1b8368e commit 2e4b0e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinClientCodegen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ public KotlinClientCodegen() {
287287
cliOptions.add(serializationLibraryOpt.defaultValue(serializationLibrary.name()));
288288

289289
cliOptions.add(CliOption.newBoolean(USE_NON_ASCII_HEADERS, "Allow to use non-ascii headers with the okhttp library"));
290-
cliOptions.add(CliOption.newBoolean(USE_RESPONSE_AS_RETURN_TYPE, "When using retrofit2 and coroutines, use `Response<T>` as return type instead of `T`."));
290+
cliOptions.add(CliOption.newBoolean(USE_RESPONSE_AS_RETURN_TYPE, "When using retrofit2 and coroutines, use `Response<T>` as return type instead of `T`.", true));
291291
}
292292

293293
@Override

0 commit comments

Comments
 (0)