@@ -418,8 +418,10 @@ public void processOpts() {
418418 LOGGER .warn ("You specified RxJava versions 1 and 2 and 3 or Coroutines together, please choose one of them." );
419419 } else if (hasRx3 ) {
420420 this .setUseRxJava3 (Boolean .parseBoolean (additionalProperties .get (USE_RX_JAVA3 ).toString ()));
421+ additionalProperties .put (USE_RX_JAVA3 , useRxJava3 );
421422 } else if (hasCoroutines ) {
422423 this .setUseCoroutines (Boolean .parseBoolean (additionalProperties .get (USE_COROUTINES ).toString ()));
424+ additionalProperties .put (USE_COROUTINES , useCoroutines );
423425 }
424426
425427 if (!hasRx3 && !hasCoroutines ) {
@@ -448,6 +450,7 @@ public void processOpts() {
448450
449451 if (additionalProperties .containsKey (OMIT_GRADLE_WRAPPER )) {
450452 setOmitGradleWrapper (Boolean .parseBoolean (additionalProperties .get (OMIT_GRADLE_WRAPPER ).toString ()));
453+ additionalProperties .put (OMIT_GRADLE_WRAPPER , omitGradleWrapper );
451454 }
452455
453456 if (additionalProperties .containsKey (CodegenConstants .SERIALIZATION_LIBRARY )) {
@@ -468,14 +471,15 @@ public void processOpts() {
468471
469472 if (additionalProperties .containsKey (GENERATE_ONEOF_ANYOF_WRAPPERS )) {
470473 setGenerateOneOfAnyOfWrappers (Boolean .parseBoolean (additionalProperties .get (GENERATE_ONEOF_ANYOF_WRAPPERS ).toString ()));
474+ additionalProperties .put (GENERATE_ONEOF_ANYOF_WRAPPERS , generateOneOfAnyOfWrappers );
471475 }
472476
473477 if (additionalProperties .containsKey (FAIL_ON_UNKNOWN_PROPERTIES )) {
474478 setFailOnUnknownProperties (Boolean .parseBoolean (additionalProperties .get (FAIL_ON_UNKNOWN_PROPERTIES ).toString ()));
475479 } else {
476- additionalProperties .put (FAIL_ON_UNKNOWN_PROPERTIES , false );
477480 setFailOnUnknownProperties (false );
478481 }
482+ additionalProperties .put (FAIL_ON_UNKNOWN_PROPERTIES , failOnUnknownProperties );
479483
480484 commonSupportingFiles ();
481485
0 commit comments