You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#23560 Correct imports for RxJava2 and RxJava3. Add support for Vert.x 5 while keeping backward compatibility for earlier versions. Add new parameter for useVertx5.
publicstaticfinalStringUSE_SINGLE_REQUEST_PARAMETER_DESC = "Setting this property to true will generate functions with a single argument containing all API endpoint parameters instead of one argument per parameter.";
408
408
409
+
publicstaticfinalStringUSE_VERTX_5 = "useVertx5";
410
+
publicstaticfinalStringUSE_VERTX_5_DESC = "Setting this property to true will generate Vert.x 5 specific callbacks using Callables.";
@@ -130,6 +131,7 @@ public class JavaClientCodegen extends AbstractJavaCodegen
130
131
protectedbooleanuseRxJava = false;
131
132
protectedbooleanuseRxJava2 = false;
132
133
protectedbooleanuseRxJava3 = false;
134
+
@SetterprotectedbooleanuseVertx5 = false;
133
135
// backwards compatibility for openapi configs that specify neither rx1 nor rx2
134
136
// (mustache does not allow for boolean operators so we need this extra field)
135
137
@SetterprotectedbooleandoNotUseRx = true;
@@ -243,6 +245,7 @@ public JavaClientCodegen() {
243
245
cliOptions.add(CliOption.newBoolean(USE_RX_JAVA2, "Whether to use the RxJava2 adapter with the retrofit2 library. IMPORTANT: This option has been deprecated."));
244
246
cliOptions.add(CliOption.newBoolean(USE_RX_JAVA3, "Whether to use the RxJava3 adapter with the retrofit2 library. IMPORTANT: This option has been deprecated."));
245
247
cliOptions.add(CliOption.newBoolean(PARCELABLE_MODEL, "Whether to generate models for Android that implement Parcelable with the okhttp-gson library."));
248
+
cliOptions.add(CliOption.newBoolean(USE_VERTX_5, "Whether to use Vert.x 5 syntax."));
0 commit comments